diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-10-24 18:43:17 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-10-24 18:43:17 -0400 |
commit | f1d87462642aa0ab4ce61e8a285e3a288b4dc119 (patch) | |
tree | ebebe7ec77b9f4f8b0a38fa3b92cd49662244cca /models/login.go | |
parent | baae94b9cfe716eb85a56ea0bf3528af29413c6e (diff) | |
download | gitea-f1d87462642aa0ab4ce61e8a285e3a288b4dc119.tar.gz gitea-f1d87462642aa0ab4ce61e8a285e3a288b4dc119.zip |
Fix fork repo and macaron API broken
Diffstat (limited to 'models/login.go')
-rw-r--r-- | models/login.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/login.go b/models/login.go index 2c5fc68e9c..87dbbacc76 100644 --- a/models/login.go +++ b/models/login.go @@ -149,7 +149,7 @@ func DelLoginSource(source *LoginSource) error { // UserSignIn validates user name and password. func UserSignIn(uname, passwd string) (*User, error) { - var u *User + u := new(User) if strings.Contains(uname, "@") { u = &User{Email: uname} } else { |