mirror of
https://github.com/1f349/tulip.git
synced 2024-12-23 00:34:07 +00:00
Fix claim perm typo
This commit is contained in:
parent
7cd49fce0d
commit
1e17631af9
@ -75,7 +75,7 @@ func (h *HttpServer) internalAuthenticationHandler(req *http.Request) (UserAuth,
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return UserAuth{}, err
|
return UserAuth{}, err
|
||||||
}
|
}
|
||||||
return UserAuth{ID: b.Subject, NeedOtp: b.Claims.Perms.Has("need-otp")}, nil
|
return UserAuth{ID: b.Subject, NeedOtp: b.Claims.Perms.Has("needs-otp")}, nil
|
||||||
}
|
}
|
||||||
// not logged in
|
// not logged in
|
||||||
return UserAuth{}, nil
|
return UserAuth{}, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user