mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-16 04:08:08 +01:00
allow adding users and set new users has having cas as the auth type
This commit is contained in:
parent
1621a7bb7d
commit
b85b3fc081
3 changed files with 20 additions and 1 deletions
|
|
@ -153,6 +153,9 @@ class User < ActiveRecord::Base
|
|||
if Tracks::Config.auth_schemes.include?('ldap')
|
||||
return candidate if candidate.auth_type == 'ldap' && SimpleLdapAuthenticator.valid?(login, pass)
|
||||
end
|
||||
if Tracks::Config.auth_schemes.include?('cas')
|
||||
return candidate #because we can not auth them with out thier real password we have to settle for this
|
||||
end
|
||||
return nil
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue