CSRF
in package
Manage CSRF protection
Table of Contents
Methods
- createCSRF() : void
- Create a CSRF token
- verifyCSRF() : void
- Verify if there is a CSRF token and if it's correct
Methods
createCSRF()
Create a CSRF token
public
static createCSRF() : void
Return values
void —the CSRF token created on HTML input
verifyCSRF()
Verify if there is a CSRF token and if it's correct
public
static verifyCSRF() : void
Return values
void —error or a message that said the token is correct