We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b7f096 commit 9ca8128Copy full SHA for 9ca8128
app/controllers/sudo_rails/application_controller.rb
@@ -4,7 +4,7 @@ class ApplicationController < ActionController::Base
4
5
def confirm
6
if SudoRails.confirm?(self, params[:password])
7
- session[:sudo_session] = Time.zone.now.to_s
+ extend_sudo_session!
8
else
9
flash[:alert] = I18n.t('sudo_rails.invalid_pass', locale: params[:locale])
10
end
0 commit comments