Справка MediaWiki API
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: 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.
- Тип: user name
 Email address of the user being reset.
- capture
 Return the temporary passwords that were sent. Requires the
passwordresetuser right.- Тип: двоичный (details)
 - token
 A "csrf" token retrieved from action=query&meta=tokens
- Это обязательный параметр.
 
Примеры:
- Send a password reset email to user Example.
 - api.php?action=resetpassword&user=Example&token=123ABC [open in sandbox]
 - Send a password reset email for all users with email address user@example.com.
 - api.php?action=resetpassword&user=user@example.com&token=123ABC [open in sandbox]