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 [在沙盒中打开]