Skip to main content

verify

Function verify 

Source
pub fn verify(cx: &Cx, submitted: Option<&str>) -> Result<(), Error>
Expand description

Verifies the value a POST submitted under FIELD_NAME is a mask of the cookie’s token with a constant-time compare, failing closed with 403. The cookie’s token itself, unmasked, is refused: no page renders it.