mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 07:36:41 +10:00
Downcase the LDAP email address before comparing
This commit is contained in:
@@ -59,7 +59,7 @@ module Gitlab
|
||||
gitlab_user = ::User.where(provider: 'ldap', extern_uid: uid).last
|
||||
|
||||
if gitlab_user && ldap_user && ldap_user.email
|
||||
ldap_email = ldap_user.email.last
|
||||
ldap_email = ldap_user.email.last.to_s.downcase
|
||||
|
||||
if (gitlab_user.email != ldap_email)
|
||||
gitlab_user.update(email: ldap_email)
|
||||
|
||||
Reference in New Issue
Block a user