urlencode email address so that emails with + work.
modified: make_post_sell/models/user.py modified: make_post_sell/views/authentication.py
This commit is contained in:
parent
10e8944f13
commit
34ea581dab
2 changed files with 5 additions and 2 deletions
|
|
@ -159,7 +159,7 @@ class User(RBase, Base):
|
|||
stored_hash.encode("utf-8"),
|
||||
).decode("utf-8")
|
||||
|
||||
#log.info("new_hash={} stored_hash={}".format(new_hash, stored_hash))
|
||||
log.info("new_hash={} stored_hash={}".format(new_hash, stored_hash))
|
||||
|
||||
if new_hash == stored_hash:
|
||||
return True
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@ from ..lib.mail import send_verification_digits_to_email
|
|||
|
||||
from . import get_referer_or_home
|
||||
|
||||
from urllib.parse import urlencode
|
||||
|
||||
import logging
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
|
@ -76,7 +78,8 @@ def join_or_log_in(request):
|
|||
|
||||
request.session.flash(msg)
|
||||
|
||||
return HTTPFound("/verification-challenge?email={}".format(email))
|
||||
email_encoded = urlencode({"email": email})
|
||||
return HTTPFound("/verification-challenge?{}".format(email_encoded))
|
||||
|
||||
return {
|
||||
"title": "join or log in",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue