summaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-18 01:33:53 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-18 01:33:53 -0400
commita3a93aef11f9ff6eca38e9147b022a0649b73bdf (patch)
treeb669aadf733d04b5f2661ee1c7014760f0a6ac6c /models/user.go
parentd886f4df9734ccf69647dfb5564effaca85fed50 (diff)
downloadgitea-a3a93aef11f9ff6eca38e9147b022a0649b73bdf.tar.gz
gitea-a3a93aef11f9ff6eca38e9147b022a0649b73bdf.zip
Add some config options
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 87c644b2b6..80af9bd4ba 100644
--- a/models/user.go
+++ b/models/user.go
@@ -252,7 +252,7 @@ func LoginUserPlain(name, passwd string) (*User, error) {
} else if !has {
err = ErrUserNotExist
}
- return &user, nil
+ return &user, err
}
// FollowUser marks someone be another's follower.