1
0
Fork 0
forked from forgejo/forgejo

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 {