Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew Blessing <drew@gitlab.com>2015-10-08 22:59:46 +0300
committerDrew Blessing <drew@gitlab.com>2015-10-08 22:59:46 +0300
commitb7def88c02b3726259800a25ee8bb82c866fe673 (patch)
tree7a7e35049cbcf347d97019da5b138dc2fab8629a /lib/gitlab/ldap
parent680b6d88a5c0d63deeb2909f1c83e3630db87780 (diff)
Fix ldap email downcasing bug
Diffstat (limited to 'lib/gitlab/ldap')
-rw-r--r--lib/gitlab/ldap/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ldap/user.rb b/lib/gitlab/ldap/user.rb
index 1ea7751e27d..4be99dd88c2 100644
--- a/lib/gitlab/ldap/user.rb
+++ b/lib/gitlab/ldap/user.rb
@@ -35,7 +35,7 @@ module Gitlab
end
def find_by_email
- ::User.find_by(email: auth_hash.email)
+ ::User.find_by(email: auth_hash.email.downcase)
end
def update_user_attributes