Class: CASino::TwoFactorAuthenticatorDestroyerListener
- Inherits:
-
Listener
- Object
- Listener
- CASino::TwoFactorAuthenticatorDestroyerListener
show all
- Defined in:
- app/listeners/casino/two_factor_authenticator_destroyer_listener.rb
Instance Method Summary
collapse
Methods inherited from Listener
#initialize
Instance Method Details
#invalid_two_factor_authenticator ⇒ Object
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_destroyed ⇒ Object
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_in ⇒ Object
4
5
6
|
# File 'app/listeners/casino/two_factor_authenticator_destroyer_listener.rb', line 4
def user_not_logged_in
@controller.redirect_to login_path
end
|