Revision 9d0473aa
Added by Ohad Levy over 11 years ago
- ID 9d0473aae025d472f60cc8c0af058166be7554f0
app/models/user.rb | ||
---|---|---|
return nil if password.to_s.empty?
|
||
|
||
# user is already in local database
|
||
if (user = find_by_login(login))
|
||
if (user = unscoped.find_by_login(login))
|
||
# user has an authentication method and the authentication was successful
|
||
if user.auth_source and user.auth_source.authenticate(login, password)
|
||
logger.debug "Authenticated user #{user} against #{user.auth_source} authentication source"
|
Also available in: Unified diff
Ensure existing org user search is unscoped
refs 611f5bff