chore(auth): #331 add and fix forgot password actual tests

This commit is contained in:
2024-12-25 23:12:31 +01:00
parent b0f183aeed
commit 55408da398
2 changed files with 136 additions and 1 deletions

View File

@@ -374,7 +374,7 @@ func (handler AuthImpl) handleForgotPasswordResponseComp() http.HandlerFunc {
err = handler.service.ForgotPassword(token, newPass)
if err != nil {
utils.TriggerToast(w, r, "error", err.Error(), http.StatusInternalServerError)
utils.TriggerToast(w, r, "error", err.Error(), http.StatusBadRequest)
} else {
utils.TriggerToast(w, r, "success", "Password changed", http.StatusOK)
}