Class: Sessions
- Inherits:
-
UserManagement
- Object
- Controllers::BaseApp
- UserManagement
- Sessions
- Includes:
- OpenIdAuthentication
- Defined in:
- app/controllers/sessions.rb
Instance Method Summary collapse
Methods included from OpenIdAuthentication
Instance Method Details
#login ⇒ Object
17 18 19 20 21 22 23 |
# File 'app/controllers/sessions.rb', line 17 def login if using_open_id? open_id_authentication elsif request.post? password_authentication end end |
#logout ⇒ Object
25 26 27 28 29 30 31 |
# File 'app/controllers/sessions.rb', line 25 def logout unless Models::User.current.anonymous? set_current_user_with_updating_session Models::User.anonymous flash.info = t :successfully_logged_out end redirect_to return_to_path_for_logout end |
#status ⇒ Object
33 |
# File 'app/controllers/sessions.rb', line 33 def status; end |