mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 00:06:38 +00:00
Log access control error (#1299)
This commit is contained in:
@@ -41,6 +41,7 @@ func (a *AccessControl) Handler(h http.Handler) http.Handler {
|
||||
|
||||
user, err := a.getUser(claims)
|
||||
if err != nil {
|
||||
log.Errorf("failed to get user from claims: %s", err)
|
||||
util.WriteError(status.Errorf(status.Unauthorized, "invalid JWT"), w)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user