Commit 341b6d546ba5396d72bb51d3d266a94c3cb49206
Exists in
master
and in
4 other branches
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,7 +80,7 @@ class User < ActiveRecord::Base | ||
80 | 80 | ||
81 | def self.find_for_ldap_auth(omniauth_info) | 81 | def self.find_for_ldap_auth(omniauth_info) |
82 | name = omniauth_info.name | 82 | name = omniauth_info.name |
83 | - email = omniauth_info.email | 83 | + email = omniauth_info.email.downcase |
84 | 84 | ||
85 | if @user = User.find_by_email(email) | 85 | if @user = User.find_by_email(email) |
86 | @user | 86 | @user |