Mercurial > gemma
changeset 512:7474e9922ed5
Don't tell what the reason is when login fails for database reasons.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 24 Aug 2018 18:04:25 +0200 |
parents | b96b1b258cfa |
children | b6796cd91604 |
files | pkg/controllers/token.go |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/controllers/token.go Fri Aug 24 16:26:53 2018 +0200 +++ b/pkg/controllers/token.go Fri Aug 24 18:04:25 2018 +0200 @@ -78,7 +78,7 @@ string(input.User), input.Password) if err != nil { - http.Error(rw, "error: "+err.Error(), http.StatusUnauthorized) + http.Error(rw, http.StatusText(http.StatusUnauthorized), http.StatusUnauthorized) return }