diff options
author | reivilibre <oliverw@matrix.org> | 2021-11-23 17:01:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 17:01:34 +0000 |
commit | f25c75d376ff8517e3245e06abdacf813606bd1f (patch) | |
tree | 8a1b73633f902c750cfa8ec8e07cf2cbefebe133 /synapse/rest/client/register.py | |
parent | Add missing type hints to config base classes (#11377) (diff) | |
download | synapse-f25c75d376ff8517e3245e06abdacf813606bd1f.tar.xz |
Rename unstable `access_token_lifetime` configuration option to `refreshable_access_token_lifetime` to make it clear it only concerns refreshable access tokens. (#11388)
Diffstat (limited to 'synapse/rest/client/register.py')
-rw-r--r-- | synapse/rest/client/register.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/rest/client/register.py b/synapse/rest/client/register.py index bf3cb34146..d2b11e39d9 100644 --- a/synapse/rest/client/register.py +++ b/synapse/rest/client/register.py @@ -420,7 +420,9 @@ class RegisterRestServlet(RestServlet): self.password_policy_handler = hs.get_password_policy_handler() self.clock = hs.get_clock() self._registration_enabled = self.hs.config.registration.enable_registration - self._msc2918_enabled = hs.config.registration.access_token_lifetime is not None + self._msc2918_enabled = ( + hs.config.registration.refreshable_access_token_lifetime is not None + ) self._registration_flows = _calculate_registration_flows( hs.config, self.auth_handler |