Manual:resetUserEmail.php

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:ResetUserEmail.php and the translation is 47% complete.

Other languages:
Deutsch • ‎English • ‎dansk • ‎polski • ‎中文 • ‎日本語

MediaWiki バージョン: 1.27
Gerrit change 255044

詳細

resetUserEmail.php file is a maintenance script to change the email address of users on the wiki, and mark the email address as confirmed. In addition to that, it will set a random password on that account. This will require the user to reset their password in order to be able to login again.

This can be used to set or change an email address on an account that doesn't have a confirmed email address or the email address is no longer accessible. This can also be used to effectively lock an account by setting the email address to a fake one, since it also resets the password.

使用法

パラメーター

オプション/パラメーター 説明
--no-reset-password Don't reset the user's password. Defaults to false so that, double negation, the password by default does get reset.
--dbuser The DB user to use for this script
--dbpass The password to use for this script
利用者名、または # で始まる場合は利用者 ID。
割り当てるメールアドレス。

To change User's email address to user@gmail.com and reset his password:

$ php resetUserEmail.php User user@gmail.com