instance method
compare_with_real_token
Ruby on Rails 6.0.6
Since v5.2.8.1 PrivateSignature
compare_with_real_token(token, session)
No documentation comment.
Parameters
-
tokenreq -
sessionreq
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 377
def compare_with_real_token(token, session) # :doc:
ActiveSupport::SecurityUtils.fixed_length_secure_compare(token, real_csrf_token(session))
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 377
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection