Class: CASino::TwoFactorAuthenticatorDestroyerListener

Inherits:
Listener
  • Object
show all
Defined in:
app/listeners/casino/two_factor_authenticator_destroyer_listener.rb

Instance Method Summary collapse

Methods inherited from Listener

#initialize

Constructor Details

This class inherits a constructor from CASino::Listener

Instance Method Details

#invalid_two_factor_authenticatorObject



13
14
15
# File 'app/listeners/casino/two_factor_authenticator_destroyer_listener.rb', line 13

def invalid_two_factor_authenticator
  @controller.redirect_to sessions_path
end

#two_factor_authenticator_destroyedObject



8
9
10
11
# File 'app/listeners/casino/two_factor_authenticator_destroyer_listener.rb', line 8

def two_factor_authenticator_destroyed
  @controller.flash[:notice] = I18n.t('two_factor_authenticators.successfully_deleted')
  @controller.redirect_to sessions_path
end

#user_not_logged_inObject



4
5
6
# File 'app/listeners/casino/two_factor_authenticator_destroyer_listener.rb', line 4

def user_not_logged_in
  @controller.redirect_to 
end