attempt 2
This commit is contained in:
parent
f1eef3f730
commit
961f449f64
1 changed files with 2 additions and 2 deletions
4
app.py
4
app.py
|
|
@ -36,8 +36,8 @@ def verify_password(username_or_token, password):
|
|||
# first try to authenticate by token
|
||||
user = User.verify_auth_token(username_or_token)
|
||||
if not user:
|
||||
g.user = user
|
||||
return True
|
||||
g.user = user
|
||||
return True
|
||||
|
||||
@app.route('/api/token')
|
||||
@auth.login_required
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue