Fixed default password generation while CSV import.

This commit is contained in:
Emanuel Schuetze 2012-10-30 23:10:23 +01:00
parent 9a522f3835
commit 3dd5ce9e73
2 changed files with 2 additions and 2 deletions

View File

@ -619,7 +619,7 @@ def motion_import(request):
user.committee = ''
user.gender = ''
user.type = ''
user.firstpassword = gen_password()
user.default_password = gen_password()
user.save()
user.reset_password()
users_generated += 1

View File

@ -84,7 +84,7 @@ def import_users(csv_file):
user.type = type
user.committee = committee
user.comment = comment
user.firstpassword = gen_password()
user.default_password = gen_password()
user.save()
user.reset_password()
count_success += 1