Fixed default password generation while CSV import.
This commit is contained in:
parent
9a522f3835
commit
3dd5ce9e73
@ -619,7 +619,7 @@ def motion_import(request):
|
|||||||
user.committee = ''
|
user.committee = ''
|
||||||
user.gender = ''
|
user.gender = ''
|
||||||
user.type = ''
|
user.type = ''
|
||||||
user.firstpassword = gen_password()
|
user.default_password = gen_password()
|
||||||
user.save()
|
user.save()
|
||||||
user.reset_password()
|
user.reset_password()
|
||||||
users_generated += 1
|
users_generated += 1
|
||||||
|
@ -84,7 +84,7 @@ def import_users(csv_file):
|
|||||||
user.type = type
|
user.type = type
|
||||||
user.committee = committee
|
user.committee = committee
|
||||||
user.comment = comment
|
user.comment = comment
|
||||||
user.firstpassword = gen_password()
|
user.default_password = gen_password()
|
||||||
user.save()
|
user.save()
|
||||||
user.reset_password()
|
user.reset_password()
|
||||||
count_success += 1
|
count_success += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user