- auth: fix crash on showing Dashboard in UI if authentication is disabled
This commit is contained in:
parent
8323c0c4b6
commit
ab24ab2f1a
|
@ -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