instance method
compare_with_real_token
Ruby on Rails 7.1.6
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 530
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 530
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection