summaryrefslogtreecommitdiffstats
path: root/models/login.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-05 22:07:35 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-05 22:07:35 -0400
commit4f2f3c285717eff7a2f4ae2b79fbb0809e786dc8 (patch)
tree09e78d81573632b8638347c87d4f93d2f1c63f1b /models/login.go
parent11f9d738e8a1bce4c35bc5e1c37f5a7d1bcded5c (diff)
downloadgitea-4f2f3c285717eff7a2f4ae2b79fbb0809e786dc8.tar.gz
gitea-4f2f3c285717eff7a2f4ae2b79fbb0809e786dc8.zip
Code convention
Diffstat (limited to 'models/login.go')
-rw-r--r--models/login.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/login.go b/models/login.go
index 3efef2f78f..984a9f8c30 100644
--- a/models/login.go
+++ b/models/login.go
@@ -150,8 +150,8 @@ func DelLoginSource(source *LoginSource) error {
return err
}
-// login a user
-func LoginUser(uname, passwd string) (*User, error) {
+// UserSignIn validates user name and password.
+func UserSignIn(uname, passwd string) (*User, error) {
var u *User
if strings.Contains(uname, "@") {
u = &User{Email: uname}