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
eeef9633
Unverified
Commit
eeef9633
authored
4 years ago
by
Andrew Morgan
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix fallback value for account_threepid_delegates.email (#7316)
parent
c58ae367
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/7316.bugfix
+1
-0
1 addition, 0 deletions
changelog.d/7316.bugfix
synapse/config/emailconfig.py
+8
-3
8 additions, 3 deletions
synapse/config/emailconfig.py
with
9 additions
and
3 deletions
changelog.d/7316.bugfix
0 → 100644
+
1
−
0
View file @
eeef9633
Fixed backwards compatibility logic of the first value of `trusted_third_party_id_servers` being used for `account_threepid_delegates.email`, which occurs when the former, deprecated option is set and the latter is not.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
synapse/config/emailconfig.py
+
8
−
3
View file @
eeef9633
...
@@ -108,9 +108,14 @@ class EmailConfig(Config):
...
@@ -108,9 +108,14 @@ class EmailConfig(Config):
if
self
.
trusted_third_party_id_servers
:
if
self
.
trusted_third_party_id_servers
:
# XXX: It's a little confusing that account_threepid_delegate_email is modified
# XXX: It's a little confusing that account_threepid_delegate_email is modified
# both in RegistrationConfig and here. We should factor this bit out
# both in RegistrationConfig and here. We should factor this bit out
self
.
account_threepid_delegate_email
=
self
.
trusted_third_party_id_servers
[
0
first_trusted_identity_server
=
self
.
trusted_third_party_id_servers
[
0
]
]
# type: Optional[str]
# trusted_third_party_id_servers does not contain a scheme whereas
# account_threepid_delegate_email is expected to. Presume https
self
.
account_threepid_delegate_email
=
(
"
https://
"
+
first_trusted_identity_server
)
# type: Optional[str]
self
.
using_identity_server_from_trusted_list
=
True
self
.
using_identity_server_from_trusted_list
=
True
else
:
else
:
raise
ConfigError
(
raise
ConfigError
(
...
...
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