Skip to content

Commit

Permalink
Merge: - auth: fix crash on showing Dashboard in UI if authentication…
Browse files Browse the repository at this point in the history
… is disabled

Close #1119

* commit 'ab24ab2f1aa5a93c35e68b46abbb3f03decbaeb0':
  - auth: fix crash on showing Dashboard in UI if authentication is disabled
  • Loading branch information
szolin committed Oct 25, 2019
2 parents 8323c0c + ab24ab2 commit e04ffde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions home/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e04ffde

Please sign in to comment.