Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Interactors\TokenCheckInteractor Class Reference

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.
 

Detailed Description

Interactor for checking edit tokens.

Author
Daniel Kinzler

Member Function Documentation

◆ checkRequestToken()

Wikibase\Repo\Interactors\TokenCheckInteractor::checkRequestToken ( IContextSource $context,
string $tokenParam,
$salt = null )

Check the token sent via the given request context.

Parameters
IContextSource$context
string$tokenParam
string | null$saltsee User::matchEditToken
Exceptions
TokenCheckExceptionIf 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).

The documentation for this class was generated from the following file: