Add more log info on login failure
This commit is contained in:
parent
6070d50a58
commit
c0ecfe2e18
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue