mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-25 18:26:10 +01:00
when CAS is switched app functions as normal but does not use any other auth methods.
This commit is contained in:
parent
00d06b7a00
commit
f259924a85
5 changed files with 31 additions and 17 deletions
|
|
@ -55,12 +55,13 @@ class LoginController < ApplicationController
|
|||
@user.forget_me if logged_in?
|
||||
cookies.delete :auth_token
|
||||
session['user_id'] = nil
|
||||
reset_session
|
||||
if ( SITE_CONFIG['authentication_schemes'].include? 'cas')
|
||||
CASClient::Frameworks::Rails::Filter.logout(self)
|
||||
else
|
||||
notify :notice, "You have been logged out of Tracks."
|
||||
redirect_to_login
|
||||
end
|
||||
reset_session
|
||||
notify :notice, "You have been logged out of Tracks."
|
||||
redirect_to_login
|
||||
end
|
||||
|
||||
def check_expiry
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue