fnp
/
cas.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some tests, and docker fix
[cas.git]
/
src
/
ftp
/
utils.py
diff --git
a/src/ftp/utils.py
b/src/ftp/utils.py
index
0246b21
..
ada566a
100644
(file)
--- a/
src/ftp/utils.py
+++ b/
src/ftp/utils.py
@@
-1,6
+1,5
@@
import secrets
import secrets
-import string
+
def generate_password(length=10):
def generate_password(length=10):
- chars = string.ascii_letters + string.digits + string.punctuation
- return ''.join(secrets.choice(chars) for i in range(length))
+ return secrets.token_urlsafe(length)