scripts: only use first character of the last name into the password

This commit is contained in:
Jérôme Schneider 2013-01-30 16:36:51 +01:00
parent 4dd2cb29a6
commit b69168ba25
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ def parse_intervenant(data):
worker.save()
if worker.type.name == u'Stagiaires':
username="%s%s" % (worker.first_name[0].lower(), worker.last_name.lower())
password = worker.first_name[0].lower() + worker.last_name.lower()
password = worker.first_name[0].lower() + worker.last_name[0].lower()
user = User.objects.filter(username=username)
if not user:
for i in range(0, 4):