提交 b9b65b8d 编写于 作者: P 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: NPat Thoyts <patthoyts@users.sourceforge.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册