Class: Sessions

Inherits:
UserManagement show all
Includes:
OpenIdAuthentication
Defined in:
app/controllers/sessions.rb

Instance Method Summary collapse

Methods included from OpenIdAuthentication

new, store, store=

Instance Method Details

#loginObject



17
18
19
20
21
22
23
# File 'app/controllers/sessions.rb', line 17

def 
  if using_open_id?
    open_id_authentication
  elsif request.post?
    password_authentication
  end
end

#logoutObject



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

#statusObject



33
# File 'app/controllers/sessions.rb', line 33

def status; end