increate test coverage for user and project model

This commit is contained in:
Reinier Balt 2013-02-28 16:44:42 +01:00
parent 188baa938d
commit bf3a1e653a
4 changed files with 96 additions and 44 deletions

View file

@ -130,15 +130,6 @@ class User < ActiveRecord::Base
candidate.password_matches? pass
end
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')
# because we can not auth them with out thier real password we have to settle for this
return candidate if candidate.auth_type.eql?("cas")
end
return nil
end