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. 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):