Save default password with createopenslidesuser command.

This commit is contained in:
Emanuel Schütze 2018-01-23 10:29:11 +01:00
parent 172581d557
commit 47697fe90c

View File

@ -35,6 +35,7 @@ class Command(BaseCommand):
user_data = {
'first_name': options['first_name'],
'last_name': options['last_name'],
'default_password': options['password'],
}
user = User.objects.create_user(options['username'], options['password'], **user_data)
if options['groups_id'].isdigit():