# HG changeset patch # User Sascha L. Teichmann # Date 1535126665 -7200 # Node ID 7474e9922ed59d188633a51eea61857f441a6c69 # Parent b96b1b258cfa848d2d8723509fb2240491c7e9df Don't tell what the reason is when login fails for database reasons. diff -r b96b1b258cfa -r 7474e9922ed5 pkg/controllers/token.go --- 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 }