手册:resetUserEmail.php

From mediawiki.org
This page is a translated version of the page Manual:ResetUserEmail.php and the translation is 65% complete.
Outdated translations are marked like this.
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 不要重置用户的密码。 默认为false,因此为双重否定,即密码默认会被重置。
--dbuser 用于此脚本的数据库用户
--dbpass 用于此脚本的密码
用户名或用户ID,只要以#开头。
分配的电子邮件。

示例

要更改User的电子邮件地址为user@gmail.com,并重置其密码:

$ php resetUserEmail.php John_Doe johndoe@example.com

See also