Class: EgovUtils::SessionsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- EgovUtils::SessionsController
- Defined in:
- app/controllers/egov_utils/sessions_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
14 15 16 |
# File 'app/controllers/egov_utils/sessions_controller.rb', line 14 def create password_authentication end |
#destroy ⇒ Object
18 19 20 21 |
# File 'app/controllers/egov_utils/sessions_controller.rb', line 18 def destroy reset_session redirect_to login_path, notice: t(:notice_logout) end |
#new ⇒ Object
8 9 10 11 12 |
# File 'app/controllers/egov_utils/sessions_controller.rb', line 8 def new if current_user.logged? redirect_to main_app.root_path end end |