Skip to content

Commit e9a022f

Browse files
authored
Prompt for password when creating users (#166)
1 parent aa04ec2 commit e9a022f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

alertaclient/commands/cmd_user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def cli(obj, id, name, email, password, status, roles, text, email_verified, del
3939
if not email:
4040
raise click.UsageError('Need "--email" to create user.')
4141
if not password:
42-
raise click.UsageError('Need "--password" to create user.')
42+
password = click.prompt('Password', hide_input=True)
4343
try:
4444
user = client.create_user(
4545
name=name, email=email, password=password, status=status,

0 commit comments

Comments
 (0)