Commit b9b65b8d authored by Pat Thoyts's avatar Pat Thoyts

Ensure LDAP provided email is always compared case-insensitively.

LDAP databases may store email addresses in mixed case so
ensure we only work with a lower case version to avoid missing
a valid account after LDAP login.
Signed-off-by: default avatarPat Thoyts <patthoyts@users.sourceforge.net>
parent fa8219e0
......@@ -73,7 +73,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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment