Skip to content

Commit cb90eda

Browse files
lunny6543
andauthored
Fix login with email panic when email is not exist (#18942)
Co-authored-by: 6543 <6543@obermui.de>
1 parent 5f9c18b commit cb90eda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/auth/signin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func UserSignIn(username, password string) (*user_model.User, *auth.Source, erro
3232
}
3333
if !has {
3434
return nil, nil, user_model.ErrEmailAddressNotExist{
35-
Email: user.Email,
35+
Email: username,
3636
}
3737
}
3838
user = &user_model.User{ID: emailAddress.UID}

0 commit comments

Comments
 (0)