Skip to content

Commit

Permalink
handle csrf failure
Browse files Browse the repository at this point in the history
  • Loading branch information
stgm committed Apr 15, 2017
1 parent 4aca981 commit 54fe4a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class ApplicationController < ActionController::Base
protect_from_forgery with: :exception

rescue_from ActionController::InvalidAuthenticityToken do |exception|
flash[:alert] = "<strong>Warning:</ActionController::Base> you were logged out since you last loaded this page. If you just submitted, please login and try again."
flash[:alert] = "<strong>Warning:</ActionController::Base> you were logged out since you last loaded this page. If you just submitted, please login and try again.".html_safe
redirect_to :back
end

Expand Down

0 comments on commit 54fe4a8

Please sign in to comment.