mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Import assert_password_is_compatible
This commit is contained in:
parent
fdca9e1041
commit
fdaf9fc098
1 changed files with 4 additions and 1 deletions
|
@ -71,7 +71,10 @@ def tools_adminpw(new_password, check_strength=True):
|
|||
|
||||
"""
|
||||
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
|
||||
|
||||
if check_strength:
|
||||
|
|
Loading…
Add table
Reference in a new issue