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:
commit
e04ffde105
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue