Update app.py
Browse files
app.py
CHANGED
@@ -42,11 +42,10 @@ def generate_random_email():
|
|
42 |
return f"{username}@{random.choice(domains)}"
|
43 |
|
44 |
# Fonction pour générer un mot de passe aléatoire
|
45 |
-
def generate_random_password(length=
|
46 |
-
"""Génère un mot de passe aléatoire"""
|
47 |
-
chars = string.
|
48 |
return ''.join(random.choice(chars) for _ in range(length))
|
49 |
-
|
50 |
# Fonction pour créer un compte
|
51 |
def create_account(is_startup_rep=False):
|
52 |
"""Crée un compte sur le site web"""
|
|
|
42 |
return f"{username}@{random.choice(domains)}"
|
43 |
|
44 |
# Fonction pour générer un mot de passe aléatoire
|
45 |
+
def generate_random_password(length=8):
|
46 |
+
"""Génère un mot de passe aléatoire composé de chiffres de 1 à 8."""
|
47 |
+
chars = string.digits[1:9] # Digits from 1 to 8 (inclusive)
|
48 |
return ''.join(random.choice(chars) for _ in range(length))
|
|
|
49 |
# Fonction pour créer un compte
|
50 |
def create_account(is_startup_rep=False):
|
51 |
"""Crée un compte sur le site web"""
|