Class: Thincloud::Authentication::SessionsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/thincloud/authentication/sessions_controller.rb

Overview

Public: Handle login/logout behavior.

Instance Method Summary collapse

Instance Method Details

#authenticatedObject



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

#destroyObject



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

#newObject



10
11
12
13
# File 'app/controllers/thincloud/authentication/sessions_controller.rb', line 10

def new
  redirect_to  if logged_in?
  @identity = Identity.new
end