Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

14 wiersze
684B

  1. <%
  2. '=======================================================================================================================
  3. ' CSRF helpers: thin wrappers over the core HTMLSecurity token (one token per form family name, stored in the session)
  4. '=======================================================================================================================
  5. Function Csrf_Token(name)
  6. Csrf_Token = HTMLSecurity().GetAntiCSRFToken(name)
  7. End Function
  8. ' True only for a non-empty token that matches the session's token for this form family.
  9. Function Csrf_Valid(name, token)
  10. Csrf_Valid = (Len(token) > 0 And HTMLSecurity().IsValidAntiCSRFToken(name, token))
  11. End Function
  12. %>

Powered by TurnKey Linux.