forked from MirrorHub/synapse
Fix a regression from calling read_templates. (#8252)
Regressed in #8037.
This commit is contained in:
parent
e351298444
commit
db7de4d182
2 changed files with 2 additions and 1 deletions
1
changelog.d/8252.feature
Normal file
1
changelog.d/8252.feature
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Use the default template file when its equivalent is not found in a custom template directory.
|
|
@ -171,7 +171,7 @@ class SAML2Config(Config):
|
||||||
|
|
||||||
self.saml2_error_html_template = self.read_templates(
|
self.saml2_error_html_template = self.read_templates(
|
||||||
["saml_error.html"], saml2_config.get("template_dir")
|
["saml_error.html"], saml2_config.get("template_dir")
|
||||||
)
|
)[0]
|
||||||
|
|
||||||
def _default_saml_config_dict(
|
def _default_saml_config_dict(
|
||||||
self, required_attributes: set, optional_attributes: set
|
self, required_attributes: set, optional_attributes: set
|
||||||
|
|
Loading…
Reference in a new issue