Class: Mori::SessionsController
- Inherits:
-
MoriController
- Object
- ApplicationController
- MoriController
- Mori::SessionsController
- Defined in:
- app/controllers/mori/sessions_controller.rb
Instance Method Summary collapse
Methods inherited from MoriController
Instance Method Details
#create ⇒ Object
8 9 10 11 |
# File 'app/controllers/mori/sessions_controller.rb', line 8 def create warden.authenticate! redirect_to Mori.configuration.after_login_url, notice: "You have logged in" end |
#destroy ⇒ Object
13 14 15 16 |
# File 'app/controllers/mori/sessions_controller.rb', line 13 def destroy warden.logout redirect_to Mori.configuration.after_logout_url end |
#new ⇒ Object
2 3 4 5 6 |
# File 'app/controllers/mori/sessions_controller.rb', line 2 def new redirect_to Mori.configuration.after_login_url if current_user @user = Mori::User.new flash.now.alert = warden. if warden..present? end |