1
0

Compare commits

...

3 Commits

Author SHA1 Message Date
J. Ryan Stinnett 567a4384ef Fix style 2019-09-24 13:55:23 +01:00
J. Ryan Stinnett 7c119472bf Add changelog 2019-09-24 13:53:24 +01:00
J. Ryan Stinnett 53f850caf4 Add sid to next_link for email validation 2019-09-24 13:50:32 +01:00
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
Add sid to next_link for email validation.
+10
View File
@@ -18,6 +18,7 @@
"""Utilities for interacting with Identity Servers""" """Utilities for interacting with Identity Servers"""
import logging import logging
import urllib
from canonicaljson import json from canonicaljson import json
@@ -328,6 +329,15 @@ class IdentityHandler(BaseHandler):
# Generate a session id # Generate a session id
session_id = random_string(16) session_id = random_string(16)
if next_link:
# Manipulate the next_link to add the sid, because the caller won't get
# it until we send a response, by which time we've sent the mail.
if "?" in next_link:
next_link += "&"
else:
next_link += "?"
next_link += "sid=" + urllib.parse.quote(session_id)
# Generate a new validation token # Generate a new validation token
token = random_string(32) token = random_string(32)