|
|
@ -44,7 +44,7 @@ def advertise():
|
|
|
|
@click.argument('password')
|
|
|
|
@click.argument('password')
|
|
|
|
@click.option('-m', '--mode')
|
|
|
|
@click.option('-m', '--mode')
|
|
|
|
@flask_cli.with_appcontext
|
|
|
|
@flask_cli.with_appcontext
|
|
|
|
def admin(localpart, domain_name, password, mode = 'create'):
|
|
|
|
def admin(localpart, domain_name, password, mode='create'):
|
|
|
|
""" Create an admin user
|
|
|
|
""" Create an admin user
|
|
|
|
'mode' can be:
|
|
|
|
'mode' can be:
|
|
|
|
- 'create' (default) Will try to create user and will raise an exception if present
|
|
|
|
- 'create' (default) Will try to create user and will raise an exception if present
|
|
|
|