MediaWiki API 幫助
這是自動生成的MediaWiki API文檔頁面。
文檔和例子:https://www.mediawiki.org/wiki/API:Main_page/zh
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
passwordresetuser 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 [在沙盒中打開]