Skip to content

Commit

Permalink
Unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin committed Dec 27, 2023
1 parent 6655923 commit 0856f27
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import pwd
import grp
import random
import string
import subprocess
import copy
from logging import getLogger
Expand Down
3 changes: 1 addition & 2 deletions src/utils/password.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import string
import subprocess
import yaml
import passlib.hash

SMALL_PWD_LIST = [
"yunohost",
Expand Down Expand Up @@ -73,7 +72,7 @@ def assert_password_is_strong_enough(profile, password):


def _hash_user_password(password):
import passlib
import passlib.hash
# passlib will returns something like:
# $6$rounds=656000$AwCIMolbTAyQhtev$46UvYfVgs.k0Bt6fLTekBHyCcCFkix/NNfgAWiICX.9YUPVYZ3PsIAwY99yP5/tXhg2sYBaAhKj6W3kuYWaR3.
# cf https://passlib.readthedocs.io/en/stable/modular_crypt_format.html#modular-crypt-format
Expand Down

0 comments on commit 0856f27

Please sign in to comment.