@cli_app.command("<STR_LIT>")<EOL>@click.option("<STR_LIT>", default="<STR_LIT>", help="<STR_LIT>")<EOL>@click.option("<STR_LIT>", default="<STR_LIT>", help="<STR_LIT>")<EOL>@click.option(<EOL>"<STR_LIT>",<EOL>default="<STR_LIT>",<EOL>prompt="<STR_LIT>",<EOL>help="<STR_LIT>",<EOL>)<EOL>@click.password_option()<EOL>def reset_password(app, appbuilder, username, password):
_appbuilder = import_application(app, appbuilder)<EOL>user = _appbuilder.sm.find_user(username=username)<EOL>if not user:<EOL><INDENT>click.echo("<STR_LIT>".format(username))<EOL><DEDENT>else:<EOL><INDENT>_appbuilder.sm.reset_password(user.id, password)<EOL>click.echo(click.style("<STR_LIT>".format(username), fg="<STR_LIT>"))<EOL><DEDENT>
Resets a user's password