instance method
compare_with_real_token
Ruby on Rails 8.1.2
Since v5.2.8.1 PrivateSignature
compare_with_real_token(token, session = nil)
No documentation comment.
Parameters
-
tokenreq -
sessionopt = nil
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 553
def compare_with_real_token(token, session = nil) # :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 553
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection