Skip to content

Commit 158c266

Browse files
committed
add notes home page as default on auth
1 parent 6589b80 commit 158c266

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/auth.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def forgot_password():
9393
def confirm():
9494
token_hash = request.args.get("token_hash")
9595
auth_type = request.args.get("type")
96-
next = request.args.get("next", "dashboard")
96+
next = request.args.get("next", "notes.home")
9797

9898
if token_hash and auth_type:
9999
if auth_type == "recovery":
@@ -107,7 +107,7 @@ def confirm():
107107
@auth.route("/callback")
108108
def callback():
109109
code = request.args.get("code")
110-
next = request.args.get("next", "dashboard")
110+
next = request.args.get("next", "notes.home")
111111

112112
if code:
113113
res = supabase.auth.exchange_code_for_session({"auth_code": code})
@@ -118,7 +118,7 @@ def callback():
118118
@auth.route("/verify-token", methods=["GET", "POST"])
119119
def verify_token():
120120
auth_type = request.args.get("type", "email")
121-
next = request.args.get("next", "dashboard")
121+
next = request.args.get("next", "notes.home")
122122
form = VerifyTokenForm()
123123
if form.validate_on_submit():
124124
email = form.email.data

0 commit comments

Comments
 (0)