API:Resetpassword/ja

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page API:Resetpassword and the translation is 44% complete.

Other languages:
English • ‎dansk • ‎polski • ‎日本語

パラメーター

  • user: User being reset.
  • email: Email address of the user being reset.
  • capture: Return the temporary passwords that were sent. passwordreset 利用者権限が必要です。
  • token: action=query&meta=tokens から取得した「csrf」トークン

Reset the password for all users with e-mail address user@mediawiki.org and capture the results.



action=resetpassword

(main | resetpassword)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

Send a password reset email to a user.

Parameters:
user

User being reset.

Type: user name
email

Email address of the user being reset.

token

A "csrf" token retrieved from action=query&meta=tokens

This parameter is required.
Examples:
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]