Commit 341b6d546ba5396d72bb51d3d266a94c3cb49206

Authored by Valeriy Sizov
2 parents 474a42cf b9b65b8d

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

Ensure LDAP provided email is always compared case-insensitively.
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/user.rb
... ... @@ -80,7 +80,7 @@ class User < ActiveRecord::Base
80 80  
81 81 def self.find_for_ldap_auth(omniauth_info)
82 82 name = omniauth_info.name
83   - email = omniauth_info.email
  83 + email = omniauth_info.email.downcase
84 84  
85 85 if @user = User.find_by_email(email)
86 86 @user
... ...