dont use simular passwords in gen_password (no Il10oO)
This commit is contained in:
parent
63835e7443
commit
bcfceccb09
@ -29,11 +29,10 @@ def gen_password():
|
|||||||
"""
|
"""
|
||||||
generates a random passwort.
|
generates a random passwort.
|
||||||
"""
|
"""
|
||||||
chars = string.letters + string.digits
|
chars = "abcdefghijkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789"
|
||||||
newpassword = ''
|
size = 8
|
||||||
for i in range(8):
|
|
||||||
newpassword += choice(chars)
|
return ''.join([choice(chars) for i in range(size)])
|
||||||
return newpassword
|
|
||||||
|
|
||||||
|
|
||||||
def gen_username(first_name, last_name):
|
def gen_username(first_name, last_name):
|
||||||
|
Loading…
Reference in New Issue
Block a user