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

Close #1119

* commit 'ab24ab2f1aa5a93c35e68b46abbb3f03decbaeb0':
  - auth: fix crash on showing Dashboard in UI if authentication is disabled
This commit is contained in:
Simon Zolin 2019-10-25 13:28:50 +03:00
commit e04ffde105
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)
return u
}
return User{}
}
a.lock.Lock()