chore: update error names
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 46s

This commit is contained in:
2024-09-27 11:22:32 +02:00
parent 93baa9d740
commit 42d3f56729
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 {