Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
40fb00f5
Unverified
Commit
40fb00f5
authored
5 years ago
by
J. Ryan Stinnett
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add sid to next_link for email validation (#6097)
parent
50776261
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.d/6097.bugfix
+1
-0
1 addition, 0 deletions
changelog.d/6097.bugfix
synapse/handlers/identity.py
+10
-0
10 additions, 0 deletions
synapse/handlers/identity.py
with
11 additions
and
0 deletions
changelog.d/6097.bugfix
0 → 100644
+
1
−
0
View file @
40fb00f5
Add sid to next_link for email validation.
This diff is collapsed.
Click to expand it.
synapse/handlers/identity.py
+
10
−
0
View file @
40fb00f5
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment