示例#1
0
 def _wrapped(*args, **kwargs):
     if not check_session(True):
         return flask.abort(401)
     flask.g.valid = True
     return call(*args, **kwargs)
示例#2
0
文件: app.py 项目: bashajan/pritunl
 def _wrapped(*args, **kwargs):
     if not check_session():
         raise flask.abort(401)
     return call(*args, **kwargs)
示例#3
0
文件: app.py 项目: rchicoli/pritunl
 def _wrapped(*args, **kwargs):
     if not check_session():
         raise flask.abort(401)
     flask.g.authed = True
     return call(*args, **kwargs)