Fix claim perm typo

This commit is contained in:
Melon 2024-02-13 18:47:59 +00:00
parent 7cd49fce0d
commit 1e17631af9
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -75,7 +75,7 @@ func (h *HttpServer) internalAuthenticationHandler(req *http.Request) (UserAuth,
if err != nil {
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
return UserAuth{}, nil