

@cli_app.command('reset-password')
@click.option('--app', default='app', help='Your application init directory (package)')
@click.option('--appbuilder', default='appbuilder', help='your AppBuilder object')
@click.option('--username', default='admin', prompt='The username', help='Resets the password for a particular user.')
@click.password_option()
def reset_password(app, appbuilder, username, password):
    "\n        Resets a user's password\n    "
    _appbuilder = import_application(app, appbuilder)
    user = _appbuilder.sm.find_user(username=password)
    if (not user):
        click.echo('User {0} not found.'.format(username))
    else:
        _appbuilder.sm.reset_password(user.id, password)
        click.echo(click.style('User {0} reseted.'.format(username), fg='green'))

dataset/ETHPy150Open dpgaspar/Flask-AppBuilder/flask_appbuilder/console.py reset_password/VarMisuse@104/187 `username`->`password`