summaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-06 11:42:14 -0500
committerUnknown <joe2010xtmf@163.com>2014-03-06 11:42:14 -0500
commit56a7ab4da5d36e9311311c826c772bade7d031f0 (patch)
treefd329c1c5e31f7e40e4ac0c9893a9b370d4935d3 /models/user.go
parentd8b92b4bc99d642c7fd9a6080bdfa8d782e8c325 (diff)
downloadgitea-56a7ab4da5d36e9311311c826c772bade7d031f0.tar.gz
gitea-56a7ab4da5d36e9311311c826c772bade7d031f0.zip
Finish log in user
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go
index 912b04a3e4..a1ec293a71 100644
--- a/models/user.go
+++ b/models/user.go
@@ -192,7 +192,7 @@ func GetUserById(id int64) (*User, error) {
// LoginUserPlain validates user by raw user name and password.
func LoginUserPlain(name, passwd string) (*User, error) {
- user := User{Name: name, Passwd: passwd}
+ user := User{LowerName: strings.ToLower(name), Passwd: passwd}
if err := user.EncodePasswd(); err != nil {
return nil, err
}