Skip to content

Commit

Permalink
redirect to hedy page instead of landing page (#5769)
Browse files Browse the repository at this point in the history
Gonna approve this so I can deploy before felienne's class tomorrow
  • Loading branch information
jpelay authored Sep 12, 2024
1 parent d262ce0 commit 49f7ca2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/auth_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ def verify_email(self):
if not user:
return make_response(gettext("username_invalid"), 403)

# If user is already verified -> re-direct to landing-page anyway
# If user is already verified -> re-direct to hedy page
if "verification_pending" not in user:
return redirect("/landing-page")
return redirect("/hedy")

# Verify the token
if token != user["verification_pending"]:
Expand All @@ -241,7 +241,7 @@ def verify_email(self):
self.db.store_token({"id": cookie, "username": user["username"], "ttl": times() + SESSION_LENGTH})
remember_current_user(user)

return redirect("/landing-page")
return redirect("/hedy")

@route("/turn-into-teacher", methods=['POST'])
def turn_into_teacher_account(self):
Expand Down

0 comments on commit 49f7ca2

Please sign in to comment.