diff --git a/app/models/user.rb b/app/models/user.rb index 62c84a1e6fa..2601de2791a 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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