Update add_user.py

This commit is contained in:
Saifeddine ALOUI 2024-01-17 14:10:47 +01:00 committed by GitHub
parent d4bfbc841e
commit 889ab2ebea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ from pathlib import Path
def generate_key(length=10):
"""Generate a random key of given length"""
chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()-_=+[]{}|;:,.<>?/~'
chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()-_=+[]{}|;,.<>?/~'
return ''.join(random.choice(chars) for _ in range(length))
def add_user(users_list=None):