From 294aac4c2463a266f4b71e98a9c71b518b387a50 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 30 Jan 2023 19:14:15 +0300 Subject: oauth2: update url --- wqflask/wqflask/oauth2/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__ -- cgit v1.2.3