when CAS is switched app functions as normal but does not use any other auth methods.

This commit is contained in:
Erik Ordway 2009-11-24 13:09:29 -08:00 committed by Eric Allen
parent 00d06b7a00
commit f259924a85
5 changed files with 31 additions and 17 deletions

View file

@ -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