def _wrapped(*args, **kwargs): if not check_session(True): return flask.abort(401) flask.g.valid = True return call(*args, **kwargs)
def _wrapped(*args, **kwargs): if not check_session(): raise flask.abort(401) return call(*args, **kwargs)
def _wrapped(*args, **kwargs): if not check_session(): raise flask.abort(401) flask.g.authed = True return call(*args, **kwargs)