Skip to content

Commit

Permalink
Update bootstrap_admin script
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Tengler committed Dec 20, 2017
1 parent e6767d6 commit 8c1553c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bootstrap_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ def main():
except Exception:
raise Exception('Adding {} organization failed'.format(args.organization))
try:
user = User(
user = User.create(
None,
id=user_id,
username=args.username,
password=args.password,
email='[email protected]',
organization=organization,
created_at=datetime.utcnow(),
role='superadmin',
active=True
)
user.save()
Expand Down

0 comments on commit 8c1553c

Please sign in to comment.