summary refs log tree commit diff
path: root/synapse/api/auth.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-12-30 14:34:46 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-12-30 14:36:31 +0000
commitbc0b59e51ad807f12130ca854dea6c72698dec8e (patch)
tree3c58010fc0a31fb5b6cbce2cdd920b5b0abce771 /synapse/api/auth.py
parentMove AccountValidityConfig to its own config file (diff)
downloadsynapse-github/anoa/testbla.tar.xz
Change account validity config option instances github/anoa/testbla anoa/testbla
Diffstat (limited to 'synapse/api/auth.py')
-rw-r--r--synapse/api/auth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py

index bfcaf68b2a..5d45ffcc0b 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py
@@ -76,7 +76,7 @@ class Auth: self._auth_blocking = AuthBlocking(self.hs) - self._account_validity = hs.config.account_validity + self._account_validity_enabled = hs.config.account_validity_enabled self._track_appservice_user_ips = hs.config.track_appservice_user_ips self._macaroon_secret_key = hs.config.macaroon_secret_key @@ -219,7 +219,7 @@ class Auth: shadow_banned = user_info.shadow_banned # Deny the request if the user account has expired. - if self._account_validity.enabled and not allow_expired: + if self._account_validity_enabled and not allow_expired: if await self.store.is_account_expired( user_info.user_id, self.clock.time_msec() ):