From 7a3d8aed0f76976fada7901514f2adc86b3b71ae Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Wed, 26 Apr 2023 13:46:55 -0400 Subject: [PATCH] allow users with + in email to authenticate we need to urlencode the email address modified: remarkbox/views/authentication.py --- remarkbox/views/authentication.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/remarkbox/views/authentication.py b/remarkbox/views/authentication.py index f83c47a..d3d7405 100644 --- a/remarkbox/views/authentication.py +++ b/remarkbox/views/authentication.py @@ -12,6 +12,7 @@ from remarkbox.lib.mail import send_verification_digits_to_email from . import get_referer_or_home, get_embed_route_uri, verify_pending_nodes_in_session +from urllib.parse import urlencode @view_config(route_name="log-out") @@ -79,7 +80,9 @@ def join_or_log_in(request): request.session.flash(msg) - return HTTPFound("{}/verification-challenge?email={}".format(request.link_prefix, email)) + email_encoded = urlencode({"email": email}) + + return HTTPFound("{}/verification-challenge?email={}".format(request.link_prefix, email_encoded)) return { "title": "join or log in",