dont use simular passwords in gen_password (no Il10oO)

This commit is contained in:
Oskar Hahn 2012-09-13 11:50:06 +02:00
parent 63835e7443
commit bcfceccb09

View File

@ -29,11 +29,10 @@ def gen_password():
"""
generates a random passwort.
"""
chars = string.letters + string.digits
newpassword = ''
for i in range(8):
newpassword += choice(chars)
return newpassword
chars = "abcdefghijkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789"
size = 8
return ''.join([choice(chars) for i in range(size)])
def gen_username(first_name, last_name):