Set admin based on jwt token #45
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Admin is checked in localstorage to know if the user can search for torrents or not. This currently does not work because /login looks for a admin property in the response, but the admin property is sent via the JWT token.
Change login function to decode (base64) JWT token and look for the admin and username property there.