Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @auth.verify_password
- def verify_password(token):
- print('verifying token')
- user = User.verify_auth_token(token)
- if not user:
- return False
- g.user = user
- return True
- class EventListAPI(Resource):
- decorators = [auth.login_required]
- def get(self):
- print(request.headers)
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement