Nápověda k MediaWiki API
Toto je automaticky generovaná dokumentační stránka k MediaWiki API.
Dokumentace a příklady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=resetpassword
(main | resetpassword)
- Tento modul vyžaduje oprávnění ke čtení.
- Tento modul vyžaduje oprávnění k zápisu.
- Tento modul přijímá pouze požadavky POST.
- Zdroj: MediaWiki
- Licence: GPL-2.0-or-later
Send a password reset email to a user.
Parametry:
Other general parameters are available.
- user
- User being reset. 
- Typ: uživatel, uvedený jako uživatelské jméno
- Email address of the user being reset. 
- token
- Token typu „csrf“ získaný pomocí action=query&meta=tokens. 
- This parameter is required.
Příklady:
- Send a password reset email to user Example.
- api.php?action=resetpassword&user=Example&token=123ABC [otevřít v pískovišti]
- Send a password reset email for all users with email address user@example.com.
- api.php?action=resetpassword&user=user@example.com&token=123ABC [otevřít v pískovišti]