Skip to content

Commit 59959ab

Browse files
authored
Fix login with email panic when email is not exist (#18941)
1 parent 4697735 commit 59959ab

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)