From b8265758aa81d1d2afb160362fe0d5aa8720abed Mon Sep 17 00:00:00 2001 From: Tobias Dierich Date: Mon, 2 Oct 2023 17:08:05 +0200 Subject: [PATCH] Pass preterm token to signup internal and external --- src/spz/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spz/views.py b/src/spz/views.py index 9521554..5e5cd85 100644 --- a/src/spz/views.py +++ b/src/spz/views.py @@ -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( @@ -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)