Kaynağa Gözat

Modification of password_char to password_chars

Alexis CLEMENT 8 yıl önce
ebeveyn
işleme
6bcafdbd20
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      tracim/tracim/controllers/admin/user.py

+ 2 - 2
tracim/tracim/controllers/admin/user.py Dosyayı Görüntüle

@@ -362,7 +362,7 @@ class UserRestController(TIMRestController):
362 362
     def generate_password(
363 363
             cls,
364 364
             password_length = PASSWORD_LENGTH,
365
-            password_char = PASSWORD_CHARACTERS
365
+            password_chars = PASSWORD_CHARACTERS
366 366
             ):
367 367
 
368 368
         # character list that will be contained into the password
@@ -371,7 +371,7 @@ class UserRestController(TIMRestController):
371 371
         for j in range(0, password_length):
372 372
             # This puts a random char from the list above inside
373 373
             # the list of chars and then merges them into a String
374
-            char_list.append(random.choice(password_char))
374
+            char_list.append(random.choice(password_chars))
375 375
             password = ''.join(char_list)
376 376
         return password
377 377