Answer the question
In order to leave comments, you need to log in
How to change Bitrix password through myadmin?
Got a site on Bitrix. There is FTP and DB.
Tell me how to change the password?
I get into the database, field, standard, write
b_user
UPDATE `b_user` SET password = MD5('passwd') where login = "admin";
Answer the question
In order to leave comments, you need to log in
If you have access via FTP, then create a badass_login.php script in the root of the site with the following content:
<?php
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
$USER->Authorize(1);
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_after.php");
?>
If you have access to ftp, then just run the code
$user = new CUser;
$fields = Array(
"PASSWORD" => "123456",
"CONFIRM_PASSWORD" => "123456",
);
$user->Update($ID, $fields);
$strError .= $user->LAST_ERROR;
It's not just md5, there's also salt added
$salt = randString(8);
$arFields["PASSWORD"] = $salt.md5($salt.$arFields["PASSWORD"]);
go to the database, find the field with the user, change the email to your own, then use the password recovery function
If user registration is enabled, try creating a user through the standard registration mechanism on the site, and then in myadmin copy the system-converted password of this user and replace the administrator password with it.
login may not be admin.
Vryatli will succeed through the base.
so the most working option was proposed by Alexey Emelyanov
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question