mirror of
https://github.com/netbirdio/netbird.git
synced 2025-02-16 18:21:24 +01:00
Log access control error (#1299)
This commit is contained in:
parent
89e8540531
commit
a40261ff7e
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user