- auth: fix crash on showing Dashboard in UI if authentication is disabled

This commit is contained in:
Simon Zolin 2019-10-25 11:01:29 +03:00
parent 8323c0c4b6
commit ab24ab2f1a
1 changed files with 1 additions and 0 deletions

View File

@ -460,6 +460,7 @@ func (a *Auth) GetCurrentUser(r *http.Request) User {
u := config.auth.UserFind(user, pass) u := config.auth.UserFind(user, pass)
return u return u
} }
return User{}
} }
a.lock.Lock() a.lock.Lock()