F
F
Fedor Valyaev2015-09-26 23:35:15
1C-Bitrix
Fedor Valyaev, 2015-09-26 23:35:15

How to change the 1C-Bitrix password recovery form?

After gaining access to the administration panel, the password was changed externally. As it turned out, the password change form is tied to the account of the former administrator...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
asd111, 2015-09-27
@Owlfull

Save the following script to a file with any name and extension php (for example, password_recovery.php):

<?
require($_SERVER['DOCUMENT_ROOT']."/bitrix/header.php");
echo $USER->Update(1,array("PASSWORD"=>'Bitrix*123456'));
echo $USER->LAST_ERROR;
require($_SERVER['DOCUMENT_ROOT']."/bitrix/footer.php");
?>

Upload via FTP to the site and open it in a browser. After that, a password will be set for the user with ID=1 (by default - administrator):
After that, log in and set your password on the control panel.
Attention! Be sure to delete this file after recovering your password!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question