Project

General

Profile

« Previous | Next » 

Revision 6be0508b

Added by Stephen Benjamin over 9 years ago

fixes #4439 - ensure user logins are handled case insensitively

View differences:

app/models/auth_sources/auth_source_internal.rb
def authenticate(login, password)
return nil if login.blank? || password.blank?
self.users.unscoped.where(:login => login).first.try :matching_password?, password
self.users.unscoped.find_by_login(login).try :matching_password?, password
end
def auth_method_name

Also available in: Unified diff