Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

forgery protection in master

#6674

Current forgery protection is not raise any exceptions as said in documentation. It just quietly reset session. And request processing goes to controller action.

# CSRF protection is turned on with the protect_from_forgery method, # which will check the token and raise an ActionController::InvalidAuthenticityToken # if it doesn't match what was expected. A call to this method is generated for new # \Rails applications by default. You can customize the error message by editing # public/422.html.

  def verify_authenticity_token
    verified_request? || handle_unverified_request
  end

  def handle_unverified_request
    reset_session
  end

Reported by Anton Topchii · April 5th, 2011 @ 09:58 PM

State: new
Milestone: none
Assigned to: nobody
Importance: none

Activity

No comments yet.