Interactor for checking edit tokens.
More...
Interactor for checking edit tokens.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Wikibase\Repo\Interactors\TokenCheckInteractor::__construct |
( |
User |
$user | ) |
|
◆ checkRequestToken()
Wikibase\Repo\Interactors\TokenCheckInteractor::checkRequestToken |
( |
WebRequest |
$request, |
|
|
|
$tokenParam, |
|
|
|
$salt = null |
|
) |
| |
Check the token sent via the given web request.
- Parameters
-
WebRequest | $request | |
string | $tokenParam | |
string | null | $salt | see User::matchEditToken |
- Exceptions
-
TokenCheckException | If the token is not valid. The following error codes may be used with the TokenCheckException: "missingtoken" if no token was sent, "mustposttoken" if the token was not sent via POST, and "badtoken" if the token mismatches (e.g. when session data was lost). |
◆ $user
Wikibase\Repo\Interactors\TokenCheckInteractor::$user |
|
private |
The documentation for this class was generated from the following file: