Function validateToken
Only patrons with valid tokens can ride this ride.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Security.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Security.php
string |
$action |
The action to validate the token for |
string |
$type = 'post' |
The type of request (get, request, or post) |
boolean |
$reset = true |
Whether to reset the token and display an error if validation fails |
boolean|string
|
If the action is login, returns the token for the action, otherwise returns whether the validation was successful |