mirror of
https://github.com/go-gitea/gitea
synced 2024-12-23 18:24:30 +01:00
Fix login with email panic when email is not exist (#18941)
This commit is contained in:
parent
4697735c8d
commit
59959ab222
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ func UserSignIn(username, password string) (*user_model.User, *auth.Source, erro
|
||||||
}
|
}
|
||||||
if !has {
|
if !has {
|
||||||
return nil, nil, user_model.ErrEmailAddressNotExist{
|
return nil, nil, user_model.ErrEmailAddressNotExist{
|
||||||
Email: user.Email,
|
Email: username,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
user = &user_model.User{ID: emailAddress.UID}
|
user = &user_model.User{ID: emailAddress.UID}
|
||||||
|
|
Loading…
Reference in a new issue