mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 17:52:59 -07:00
Proxy token check through server
This commit is contained in:
parent
c39f89356c
commit
d943877e76
3 changed files with 12 additions and 6 deletions
|
@ -3414,6 +3414,15 @@ class WebInterface(object):
|
|||
|
||||
return {'result': 'success', 'message': 'Settings saved.'}
|
||||
|
||||
@cherrypy.expose
|
||||
@cherrypy.tools.json_out()
|
||||
@requireAuth(member_of("admin"))
|
||||
def check_pms_token(self, **kwargs):
|
||||
plex_tv = plextv.PlexTV()
|
||||
response = plex_tv.get_plextv_resources(return_response=True)
|
||||
if not response.ok:
|
||||
cherrypy.response.status = 401
|
||||
|
||||
@cherrypy.expose
|
||||
@cherrypy.tools.json_out()
|
||||
@requireAuth(member_of("admin"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue