def METHOD_NAME(username: str, password: Optional[str]):
    """Set password for the user."""
    user = model.User.get(username)
    if not user:
        error_shout("User not found!")
        raise click.Abort()
    click.secho(f"Editing user: {user.name}", fg="yellow")
    if not password:
        password = click.prompt(
            "Password",
            hide_input=True,
            confirmation_prompt=True,
        )
    user.password = password
    model.repo.commit_and_remove()
    click.secho("Password updated!", fg="green", bold=True)