Wikibase
MediaWiki Wikibase extension
|
Interactor for checking edit tokens. More...
Public Member Functions | |
checkRequestToken (IContextSource $context, string $tokenParam, $salt=null) | |
Check the token sent via the given request context. | |
Interactor for checking edit tokens.
Wikibase\Repo\Interactors\TokenCheckInteractor::checkRequestToken | ( | IContextSource | $context, |
string | $tokenParam, | ||
$salt = null ) |
Check the token sent via the given request context.
IContextSource | $context | |
string | $tokenParam | |
string | null | $salt | see User::matchEditToken |
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). |