Module: SudoMode::Concerns::RequirePasswordConfirmation

Extended by:
ActiveSupport::Concern
Defined in:
app/controllers/sudo_mode/concerns/require_password_confirmation.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#check_passwordObject



14
15
16
17
18
# File 'app/controllers/sudo_mode/concerns/require_password_confirmation.rb', line 14

def check_password
 unless current_user.authenticate(params[:password])
    redirect_to sudo_mode.new_confirmation_path(:redirect_to => request.path, :method => request.request_method)
  end
end