MediaWiki API 說明
此頁為自動產生的 MediaWiki API 說明文件頁面。
說明文件與範例:https://www.mediawiki.org/wiki/API
action=resetpassword
(main | resetpassword)
- 此模組需要讀取權限。
- 此模組需要寫入權限。
- 此模組僅接受 POST 請求。
- 来源:MediaWiki
- 许可协议:GPL-2.0+
Send a password reset email to a user.
參數:
- user
User being reset.
- 类型:用户名
Email address of the user being reset.
- capture
Return the temporary passwords that were sent. Requires the
passwordreset
user right.- 类型:布尔值(详细信息)
- token
自 action=query&meta=tokens 接收的 "csrf" 密鑰。
- 此參數為必填。
範例:
- Send a password reset email to user Example.
- api.php?action=resetpassword&user=Example&token=123ABC [在沙盒中打开]
- Send a password reset email for all users with email address user@example.com.
- api.php?action=resetpassword&user=user@example.com&token=123ABC [在沙盒中打开]