Docfile commited on
Commit
235cd5c
·
verified ·
1 Parent(s): e2d162b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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=12):
46
- """Génère un mot de passe aléatoire"""
47
- chars = string.ascii_letters + string.digits + "!@#$%^&*"
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"""