Skip to content

Commit

Permalink
Fix verify_token() invocation (#2881)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-c committed Jan 2, 2019
1 parent 0b5b1e5 commit 1eaa3cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portal/views/portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def access_via_token(token, next_step=None):
abort(400, "Invalid state - access denied")

# only give such tokens 5 minutes - recheck validity
verify_token(valid_seconds=5 * 60)
verify_token(token, valid_seconds=5 * 60)
auditable_event("promoting user without challenge via token, "
"pending registration", user_id=user.id,
subject_id=user.id, context='account')
Expand Down

0 comments on commit 1eaa3cc

Please sign in to comment.