This commit is contained in:
2026-10-03 01:28:09 +07:00
parent 2e1f8e21e9
commit 55d8522f7c
5 changed files with 63 additions and 35 deletions
+1 -1
View File
@@ -264,7 +264,7 @@ func (s *UsersService) Login(
)
if err != nil {
if errors.Is(err, users_repo.ErrUserNotFound) {
return "", "", err
return "", "", fmt.Errorf("%w: %w", ErrInvalidCredentials, err)
}
return "", "", err
}