aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask/oauth2/routes.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/wqflask/oauth2/routes.py')
-rw-r--r--wqflask/wqflask/oauth2/routes.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/wqflask/wqflask/oauth2/routes.py b/wqflask/wqflask/oauth2/routes.py
index 5411c3c6..2f4d4492 100644
--- a/wqflask/wqflask/oauth2/routes.py
+++ b/wqflask/wqflask/oauth2/routes.py
@@ -69,7 +69,9 @@ def login():
session["oauth2_token"] = token
except OAuthError as _oaerr:
flash(_oaerr.args[0], "alert-danger")
- return render_template("oauth2/login.html")
+ return render_template(
+ "oauth2/login.html", next_endpoint=next_endpoint,
+ email=form.get("email_address"))
if user_logged_in():
if next_endpoint: