CSRF
in package
Cross-site request forgery protection
Table of Contents
- getInputField() : string
- Generate CSRF input field
- isTokenValid() : bool
- Check if CSRF token is valid
- generateToken() : string
- Generate CSRF token
Methods
getInputField()
Generate CSRF input field
public
static getInputField() : string
Return values
string —isTokenValid()
Check if CSRF token is valid
public
static isTokenValid(string $token) : bool
Parameters
- $token : string
Return values
bool —generateToken()
Generate CSRF token
private
static generateToken() : string