OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa8219e
)
Ensure LDAP provided email is always compared case-insensitively.
author
Pat Thoyts
<patthoyts@users.sourceforge.net>
Fri, 24 Feb 2012 14:35:44 +0000
(14:35 +0000)
committer
Pat Thoyts
<patthoyts@users.sourceforge.net>
Fri, 23 Mar 2012 14:59:54 +0000
(14:59 +0000)
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: Pat Thoyts <patthoyts@users.sourceforge.net>
app/models/user.rb
patch
|
blob
|
history
diff --git
a/app/models/user.rb
b/app/models/user.rb
index
5caa745
..
b85ee80
100644
(file)
--- a/
app/models/user.rb
+++ b/
app/models/user.rb
@@
-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