[fix] Import assert_password_is_compatible

This commit is contained in:
ljf (zamentur) 2022-08-03 14:51:00 +02:00 committed by GitHub
parent fdca9e1041
commit fdaf9fc098
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,10 @@ def tools_adminpw(new_password, check_strength=True):
""" """
from yunohost.user import _hash_user_password from yunohost.user import _hash_user_password
from yunohost.utils.password import assert_password_is_strong_enough from yunohost.utils.password import (
assert_password_is_strong_enough,
assert_password_is_compatible
)
import spwd import spwd
if check_strength: if check_strength: