Add more log info on login failure

This commit is contained in:
Eli Ribble 2026-01-26 20:41:21 +00:00
parent 6070d50a58
commit c0ecfe2e18
No known key found for this signature in database

View file

@ -37,6 +37,7 @@ func postSignin(w http.ResponseWriter, r *http.Request) {
http.Error(w, "invalid-credentials", http.StatusUnauthorized) http.Error(w, "invalid-credentials", http.StatusUnauthorized)
return return
} }
log.Error().Err(err).Str("username", username).Msg("Login server error")
http.Error(w, "signin-server-error", http.StatusInternalServerError) http.Error(w, "signin-server-error", http.StatusInternalServerError)
return return
} }