6 lines
136 B
Python
6 lines
136 B
Python
import cherrypy
|
|
|
|
def token_check(redirect):
|
|
if cherrypy.session.get("token") == None:
|
|
raise cherrypy.HTTPRedirect(redirect)
|