MediaWiki API hulp
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=changeauthenticationdata (changeauth)
(main | changeauthenticationdata)
- Voor deze module zijn leesrechten nodig.
- Voor deze module zijn schrijfrechten nodig.
- This module only accepts POST requests.
- Bron: MediaWiki
- Licentie: GPL-2.0-or-later
Change authentication data for the current user.
Specifieke parameters:
Other general parameters are available.
- changeauthrequest
Use this authentication request, by the id returned from action=query&meta=authmanagerinfo with amirequestsfor=change.
- Deze parameter is vereist.
- changeauthtoken
A "csrf" token retrieved from action=query&meta=tokens
- Deze parameter is vereist.
- *
- This module accepts additional parameters depending on the available authentication requests. Use action=query&meta=authmanagerinfo with amirequestsfor=change (or a previous response from this module, if applicable) to determine the requests available and the fields that they use.
Voorbeeld:
- Poging om het wachtwoord van de huidige gebruiker te veranderen in ExamplePassword.
- api.php?action=changeauthenticationdata&changeauthrequest=MediaWiki%5CAuth%5CPasswordAuthenticationRequest&password=ExamplePassword&retype=ExamplePassword&changeauthtoken=123ABC [in de sandbox openen]