allow users with + in email to authenticate

we need to urlencode the email address

	modified:   remarkbox/views/authentication.py
This commit is contained in:
Russell Ballestrini 2023-04-26 13:46:55 -04:00
parent 7dd16fac1b
commit 7a3d8aed0f

View file

@ -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",