Commit 341b6d54 authored by Valeriy Sizov's avatar Valeriy Sizov

Merge pull request #586 from patthoyts/pt/ldap-auth-fix

Ensure LDAP provided email is always compared case-insensitively.
parents 474a42cf b9b65b8d
......@@ -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
......
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