fix: error message spacing for incorrect password (#9649)

This commit is contained in:
Tushar Vats
2025-11-21 22:04:19 +05:30
committed by GitHub
parent 4bfd7ba3d7
commit 79988b448f

View File

@@ -27,7 +27,7 @@ func (a *AuthN) Authenticate(ctx context.Context, email string, password string,
}
if !factorPassword.Equals(password) {
return nil, errors.New(errors.TypeUnauthenticated, types.ErrCodeIncorrectPassword, "invalid email orpassword")
return nil, errors.New(errors.TypeUnauthenticated, types.ErrCodeIncorrectPassword, "invalid email or password")
}
return authtypes.NewIdentity(user.ID, orgID, user.Email, user.Role), nil