From: Michael Tremer Date: Thu, 31 Oct 2019 19:23:27 +0000 (+0000) Subject: accounts: Cleanup expired password reset tokens X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b2b94608bc40f326efa1d8a56ce8691a2b444cb5;p=ipfire.org.git accounts: Cleanup expired password reset tokens Signed-off-by: Michael Tremer --- diff --git a/src/backend/accounts.py b/src/backend/accounts.py index 55d99a6c..f79b4fd3 100644 --- a/src/backend/accounts.py +++ b/src/backend/accounts.py @@ -334,6 +334,9 @@ class Accounts(Object): # Cleanup expired account activations self.db.execute("DELETE FROM account_activations WHERE expires_at <= NOW()") + # Cleanup expired account password resets + self.db.execute("DELETE FROM account_password_resets WHERE expires_at <= NOW()") + # Discourse def decode_discourse_payload(self, payload, signature):