aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-01-30 19:14:15 +0300
committerFrederick Muriuki Muriithi2023-01-30 19:14:15 +0300
commit294aac4c2463a266f4b71e98a9c71b518b387a50 (patch)
tree0a3546ed71d2a268372297245c7f1bffb4930d98
parent04a07b4f20da9a942b8ded979e0828ba5d60e89d (diff)
downloadgenenetwork2-294aac4c2463a266f4b71e98a9c71b518b387a50.tar.gz
oauth2: update url
-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__