def METHOD_NAME():
    old_password = request.form.get("password")
    new_password = request.form.get("new_password")
    if current_user.update_password(old_password, new_password):
        flash(f"Account {current_user.login_name} successfully updated")
    else:
        flash("An error occurred updating the account")
    return redirect(url_for("user_settings"))