Module: MinimalistAuthentication::Sessions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/minimalist_authentication/sessions.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/minimalist_authentication/sessions.rb', line 23 def create if authenticated_user log_in_user set_or_verify_email || after_authentication_success else after_authentication_failure end end |
#destroy ⇒ Object
32 33 34 35 |
# File 'lib/minimalist_authentication/sessions.rb', line 32 def destroy reset_session redirect_to logout_redirect_to, notice: t(".notice"), status: :see_other end |
#new ⇒ Object
19 20 21 |
# File 'lib/minimalist_authentication/sessions.rb', line 19 def new user end |