app/controllers/account_controller.rb
# Process a password change form, used when the user is forced
# to change the password.
# When making changes here, also check MyController.change_password
Process a password change form, used when the user is forced
to change the password.
When making changes here, also check MyController.change_password
Process a password change form used when the user is forced to change the password . When making changes here also check MyController . change_password
def change_password
    @user = User.find(flash[:_password_change_user_id])
    change_password_flow(user: @user, params: params, show_user_name: true) do
      password_authentication(@user.login, params[:new_password])
    end
  rescue ActiveRecord::RecordNotFound
    Rails.logger.error "Failed to find user for change_password request: #{flash[:_password_change_user_id]}"
    render_404
  end
def change_password @user = User . find ( flash [ :_password_change_user_id ] ) change_password_flow ( user : @user , params : params , show_user_name : true ) do password_authentication ( @user . login , params [ :new_password ] ) end rescue ActiveRecord :: RecordNotFound Rails . logger . error "Failed to find user for change_password request: #{flash[:_password_change_user_id]}" render_404 end
Process a password change form, used when the user is forced
to change the password.
Process a password change form used when the user is forced to change the password .
# Retrieve user_id from session