Class: Thincloud::Authentication::SessionsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Thincloud::Authentication::SessionsController
- Defined in:
- app/controllers/thincloud/authentication/sessions_controller.rb
Overview
Public: Handle login/logout behavior.
Instance Method Summary collapse
Instance Method Details
#authenticated ⇒ Object
20 21 22 23 |
# File 'app/controllers/thincloud/authentication/sessions_controller.rb', line 20 def authenticated # dummy method to test the :authenticate! before_filter render text: "Authenticated!" end |
#destroy ⇒ Object
15 16 17 18 |
# File 'app/controllers/thincloud/authentication/sessions_controller.rb', line 15 def destroy logout redirect_to after_logout_path, notice: "You have been logged out." end |
#new ⇒ Object
10 11 12 13 |
# File 'app/controllers/thincloud/authentication/sessions_controller.rb', line 10 def new redirect_to after_login_path if logged_in? @identity = Identity.new end |