Merge pull request #586 from patthoyts/pt/ldap-auth-fix
Ensure LDAP provided email is always compared case-insensitively.
This commit is contained in:
commit
341b6d546b
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ class User < ActiveRecord::Base
|
|||
|
||||
def self.find_for_ldap_auth(omniauth_info)
|
||||
name = omniauth_info.name
|
||||
email = omniauth_info.email
|
||||
email = omniauth_info.email.downcase
|
||||
|
||||
if @user = User.find_by_email(email)
|
||||
@user
|
||||
|
|
Loading…
Reference in a new issue