aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/oauth2/checks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/oauth2/checks.py b/wqflask/wqflask/oauth2/checks.py
index a2cf9ed4..ccb2c3f7 100644
--- a/wqflask/wqflask/oauth2/checks.py
+++ b/wqflask/wqflask/oauth2/checks.py
@@ -29,6 +29,6 @@ def require_oauth2(func):
session.pop("user_details", None)
flash("You need to be logged in.", "alert-warning")
- return redirect(url_for("oauth2.login", next=request.endpoint))
+ return redirect(url_for("oauth2.toplevel.login", next=request.endpoint))
return __token_valid__