Fix auth.AddUser method

This commit is contained in:
Lou Knauer
2022-07-26 11:00:41 +02:00
parent dc4c7f0033
commit dc0bf80742
2 changed files with 10 additions and 2 deletions

View File

@@ -157,7 +157,8 @@ func (auth *Authentication) Login(onsuccess http.Handler, onfailure func(rw http
user := (*User)(nil)
if username != "" {
if user, _ = auth.GetUser(username); err != nil {
log.Warnf("login of unkown user %#v", username)
// log.Warnf("login of unkown user %#v", username)
_ = err
}
}