]> git.ipfire.org Git - ipfire.org.git/commitdiff
accounts: Authenticate when changing passwords, too
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 18 May 2019 12:13:16 +0000 (13:13 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 18 May 2019 12:13:16 +0000 (13:13 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/backend/accounts.py

index d25bbcb79aa254f506410b3c86fac167c4d320f0..35d4b59b5ea0915d6a8018248e8a0f4b332a91f6 100644 (file)
@@ -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):