MediaWiki API 幫助
這是自動生成的MediaWiki API文檔頁面。
文檔和例子:https://www.mediawiki.org/wiki/API:Main_page/zh
action=changeauthenticationdata (changeauth)
(main | changeauthenticationdata)
- 此模塊需要讀取權限。
- 此模塊需要寫入權限。
- 此模塊只允許POST請求。
- 來源:MediaWiki
- 許可協議:GPL-2.0+
Change authentication data for the current user.
參數:
- changeauthrequest
Use this authentication request, by the id returned from action=query&meta=authmanagerinfo with amirequestsfor=change.
- 這個參數是必須的。
- changeauthtoken
從action=query&meta=tokens取回的“csrf”令牌
- 這個參數是必須的。
- *
- 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.
例子:
- Attempt to change the current user's password to ExamplePassword.
- api.php?action=changeauthenticationdata&changeauthrequest=MediaWiki%5CAuth%5CPasswordAuthenticationRequest&password=ExamplePassword&retype=ExamplePassword&changeauthtoken=123ABC [在沙盒中打開]