costa-vite-myna/core/authentication.py
Dita Aji Pratama d4ca69fb2b First Commit
2022-03-16 11:06:52 +07:00

6 lines
136 B
Python

import cherrypy
def token_check(redirect):
if cherrypy.session.get("token") == None:
raise cherrypy.HTTPRedirect(redirect)