diff options
author | Brendan Abolivier <contact@brendanabolivier.com> | 2019-04-17 19:59:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-17 19:59:27 +0100 |
commit | 8383a553a6ff3846a2262784c907a1d1e30de930 (patch) | |
tree | 6bbce5eafc0db3b24ccc3b59b051da850382ae09 /synapse/api/auth.py | |
parent | Merge pull request #5047 from matrix-org/babolivier/account_expiration (diff) | |
parent | Merge branch 'develop' of github.com:matrix-org/synapse into babolivier/accou... (diff) | |
download | synapse-8383a553a6ff3846a2262784c907a1d1e30de930.tar.xz |
Merge pull request #5073 from matrix-org/babolivier/account_expiration
Add some endpoints for account validity management
Diffstat (limited to 'synapse/api/auth.py')
-rw-r--r-- | synapse/api/auth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py index 4482962510..960e66dbdc 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py @@ -232,7 +232,7 @@ class Auth(object): if self._account_validity.enabled: user_id = user.to_string() expiration_ts = yield self.store.get_expiration_ts_for_user(user_id) - if expiration_ts and self.clock.time_msec() >= expiration_ts: + if expiration_ts is not None and self.clock.time_msec() >= expiration_ts: raise AuthError( 403, "User account has expired", |