forked from forgejo/forgejo
Fix fork repo and macaron API broken
This commit is contained in:
parent
baae94b9cf
commit
f1d8746264
8 changed files with 171 additions and 178 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue