Permalink
Browse files

Fix verify_token() invocation (#2881)

  • Loading branch information...
ivan-c committed Jan 2, 2019
1 parent 0b5b1e5 commit 1eaa3cc4cb5b510a4586b7c35d3d0fa38aeec334
Showing with 1 addition and 1 deletion.
  1. +1 −1 portal/views/portal.py
@@ -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')

0 comments on commit 1eaa3cc

Please sign in to comment.