Merge pull request #3550 from emanuelschuetze/defaultpassword

Save default password with createopenslidesuser command.
This commit is contained in:
Norman Jäckel 2018-01-23 20:08:31 +01:00 committed by GitHub
commit b5157cd418
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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