mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Unused imports
This commit is contained in:
parent
665592374d
commit
0856f27b46
2 changed files with 1 additions and 3 deletions
|
@ -21,7 +21,6 @@ import re
|
||||||
import pwd
|
import pwd
|
||||||
import grp
|
import grp
|
||||||
import random
|
import random
|
||||||
import string
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import copy
|
import copy
|
||||||
from logging import getLogger
|
from logging import getLogger
|
||||||
|
|
|
@ -21,7 +21,6 @@ import os
|
||||||
import string
|
import string
|
||||||
import subprocess
|
import subprocess
|
||||||
import yaml
|
import yaml
|
||||||
import passlib.hash
|
|
||||||
|
|
||||||
SMALL_PWD_LIST = [
|
SMALL_PWD_LIST = [
|
||||||
"yunohost",
|
"yunohost",
|
||||||
|
@ -73,7 +72,7 @@ def assert_password_is_strong_enough(profile, password):
|
||||||
|
|
||||||
|
|
||||||
def _hash_user_password(password):
|
def _hash_user_password(password):
|
||||||
import passlib
|
import passlib.hash
|
||||||
# passlib will returns something like:
|
# passlib will returns something like:
|
||||||
# $6$rounds=656000$AwCIMolbTAyQhtev$46UvYfVgs.k0Bt6fLTekBHyCcCFkix/NNfgAWiICX.9YUPVYZ3PsIAwY99yP5/tXhg2sYBaAhKj6W3kuYWaR3.
|
# $6$rounds=656000$AwCIMolbTAyQhtev$46UvYfVgs.k0Bt6fLTekBHyCcCFkix/NNfgAWiICX.9YUPVYZ3PsIAwY99yP5/tXhg2sYBaAhKj6W3kuYWaR3.
|
||||||
# cf https://passlib.readthedocs.io/en/stable/modular_crypt_format.html#modular-crypt-format
|
# cf https://passlib.readthedocs.io/en/stable/modular_crypt_format.html#modular-crypt-format
|
||||||
|
|
Loading…
Add table
Reference in a new issue