Skip to content

Commit

Permalink
Pass preterm token to signup internal and external
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdierich committed Oct 2, 2023
1 parent 4050776 commit b826575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spz/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def index():
return dict(form=form)

if form.get_is_internal():
oidc_redirect_url = app.config['SPZ_URL'] + url_for('signupinternal', course_id=course.id)
oidc_redirect_url = app.config['SPZ_URL'] + url_for('signupinternal', course_id=course.id, token=one_time_token)
oidc_redirect_config = oidc_url(oidc_redirect_url)

oauth_token = models.OAuthToken(
Expand All @@ -106,7 +106,7 @@ def index():

return redirect(oidc_redirect_config['url'])

return redirect(url_for('signupexternal', course_id=course.id))
return redirect(url_for('signupexternal', course_id=course.id, token=one_time_token))

return dict(form=form)

Expand Down

0 comments on commit b826575

Please sign in to comment.