KevinMidboe / seasoned

seasoned 🌶 | Vue.js webUI for requesting new Movies and TV Shows
https://request.movie
MIT License
1 stars 0 forks source link

Set admin based on jwt token #45

Closed KevinMidboe closed 4 years ago

KevinMidboe commented 4 years ago

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.