Class: SessionController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- SessionController
- Includes:
- Authpwn::SessionController
- Defined in:
- lib/authpwn_rails/generators/templates/session_controller.rb
Overview
Manages logging in and out of the application.
Instance Method Summary collapse
-
#bounce_notice_text(reason) ⇒ Object
The notification text displayed when a session authentication fails.
Methods included from Authpwn::SessionController
#api_token, #auth_controller?, #change_password, #create, #destroy, #destroy_api_token, #new, #omniauth, #omniauth_failure, #password_change, #reset_password, #show, #token
Instance Method Details
#bounce_notice_text(reason) ⇒ Object
The notification text displayed when a session authentication fails.
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/authpwn_rails/generators/templates/session_controller.rb', line 20 def bounce_notice_text(reason) case reason when :invalid 'Invalid e-mail or password' when :expired 'Password expired. Please click "Forget password"' when :blocked 'Account blocked. Please verify your e-mail address' end end |