A
A
anton_myaso2015-01-22 13:37:31
1C-Bitrix
anton_myaso, 2015-01-22 13:37:31

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";

Doesn't plow. I generate MD5 and I interpose into a DB - does not plow.
I changed the admin mail to my own, the letter with the keyword does not come.
what am i doing wrong?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Anton Piletsky, 2015-02-01
@pilezkiy

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");
?>

Run the script by following the link site.com/badass_login.php
That's it. You are now logged in as an admin.
Go to the site.com/bitrix admin panel and there, in user management, you can easily change the password to a new one.
After all the manipulations, delete the created authorization script.

A
Alexey Emelyanov, 2015-01-22
@babarun

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;

A
Alexey Ukolov, 2015-01-22
@alexey-m-ukolov

It's not just md5, there's also salt added

$salt = randString(8);
$arFields["PASSWORD"] = $salt.md5($salt.$arFields["PASSWORD"]);

bxapi.ru/src/?module_id=main&name=CUser::Add
It is enough to write 'aaaaaaaa'.md5('aaaaaaaa'.'password') into the database.

M
Maxim Timofeev, 2017-02-17
@webinar

go to the database, find the field with the user, change the email to your own, then use the password recovery function

N
Nikolai, 2015-01-22
@pragmatik

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.

R
Rad1calDreamer, 2015-01-27
@Rad1calDreamer

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 question

Ask a Question

731 491 924 answers to any question