Skip to content
Snippets Groups Projects
Unverified Commit 40fb00f5 authored by J. Ryan Stinnett's avatar J. Ryan Stinnett Committed by GitHub
Browse files

Add sid to next_link for email validation (#6097)

parent 50776261
No related branches found
No related tags found
No related merge requests found
Add sid to next_link for email validation.
......@@ -18,6 +18,7 @@
"""Utilities for interacting with Identity Servers"""
import logging
import urllib
from canonicaljson import json
......@@ -328,6 +329,15 @@ class IdentityHandler(BaseHandler):
# Generate a session id
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
token = random_string(32)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment