chore: update error names

This commit is contained in:
2024-09-27 11:22:32 +02:00
committed by Tim Wundenberg
parent 7e8730206c
commit 5d479b0811
5 changed files with 15 additions and 14 deletions

View File

@@ -68,7 +68,7 @@ func (handler HandlerAuthImpl) handleSignIn() http.HandlerFunc {
})
if err != nil {
if err == service.InvaidEmailOrPassword {
if err == service.ErrInvaidCredentials {
utils.TriggerToast(w, r, "error", "Invalid email or password")
http.Error(w, "Invalid email or password", http.StatusUnauthorized)
} else {