Jump to content

Manual:ResetUserEmail.php/ru

From mediawiki.org
This page is a translated version of the page Manual:ResetUserEmail.php and the translation is 45% complete.
Версия MediaWiki:
1.27
Gerrit change 255044

Подробности

resetUserEmail.php file is a maintenance script to change the email address of a user 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.

Note that this script will always mark the new email address as confirmed (with a confirmation date of when the maintenance script is run), regardless of whether it has actually been confirmed or not, so be careful about typos etc.

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

Использование

$ php maintenance/run.php resetUserEmail [--no-reset-password] [--email-password] <user> <email>

Параметры

Опция/Параметр Описание
--no-reset-password Не сбрасывать пароль пользователя. Defaults to false so that, double negation, the password by default does get reset.
--email-password Send a temporary password to the provided email address. Defaults to false.
<user> Username or user ID, if starts with #.
<email> Присваиваемый е-мейл

Пример

To change a user's, e. g. John Doe, email address to "johndoe@example.com" and reset their password:

$ php maintenance/run.php resetUserEmail John_Doe johndoe@example.com
В MediaWiki версии 1.43.6 и ранее скрпиты обслуживания нужно вызывать через php maintenance/scriptName.php, а не через php maintenance/run.php scriptName.

См. также