PHP Class Csrf, huge

Inheritance: extends Slim\Middleware
Mostrar archivo Open project: panique/huge Class Usage Examples

Public Methods

Method Description
isTokenValid ( ) : boolean checks if CSRF token in session is same as in the form submitted
makeToken ( ) : string get CSRF token and generate a new one if expired

Method Details

isTokenValid() public static method

checks if CSRF token in session is same as in the form submitted
public static isTokenValid ( ) : boolean
return boolean

makeToken() public static method

get CSRF token and generate a new one if expired
public static makeToken ( ) : string
return string