From: Michael Tremer Date: Sat, 18 May 2019 12:13:16 +0000 (+0100) Subject: accounts: Authenticate when changing passwords, too X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1babcd04c61d3ff6f54cdd1d77116997265b74af;p=ipfire.org.git accounts: Authenticate when changing passwords, too Signed-off-by: Michael Tremer --- diff --git a/src/backend/accounts.py b/src/backend/accounts.py index d25bbcb7..35d4b59b 100644 --- a/src/backend/accounts.py +++ b/src/backend/accounts.py @@ -390,6 +390,7 @@ class Account(Object): if quality["score"] < 3: raise ValueError("Password too weak") + self.accounts._authenticate() self.ldap.passwd_s(self.dn, None, password) def check_password(self, password):