1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Fix fork repo and macaron API broken

This commit is contained in:
Unknwon
2014-10-24 18:43:17 -04:00
parent baae94b9cf
commit f1d8746264
8 changed files with 171 additions and 178 deletions

View File

@@ -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 {