module Account::Users::ControllerBase

def update

PATCH/PUT /account/users/1.json
PATCH/PUT /account/users/1
def update
  respond_to do |format|
    if updating_password_or_email? ? @user.update_with_password(user_params) : @user.update_without_password(user_params)
      # if you update your own user account, devise will normally kick you out, so we do this instead.
      bypass_sign_in current_user.reload
      format.html { redirect_to [:edit, :account, @user], notice: t("users.notifications.updated") }
      format.json { render :show, status: :ok, location: [:account, @user] }
    else
      format.html { render :edit, status: :unprocessable_entity }
      format.json { render json: @user.errors, status: :unprocessable_entity }
    end
  end
end