Merge branch 'cas'

This commit is contained in:
Eric Allen 2010-01-14 09:46:20 -08:00
commit 761810cf7f
17 changed files with 269 additions and 16 deletions

View file

@ -11,5 +11,17 @@ module Tracks
def self.openid_enabled?
auth_schemes.include?('open_id')
end
def self.cas_enabled?
auth_schemes.include?('cas')
end
def self.prefered_auth?
if SITE_CONFIG['prefered_auth']
SITE_CONFIG['prefered_auth']
else
auth_schemes.first
end
end
end
end