Created
August 29, 2022 05:53
-
-
Save BekNaji/7cd4cb00bc305a4ecd991e823420c2a1 to your computer and use it in GitHub Desktop.
When you forget password in bitrix. You can restore password
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php"); | |
$user = new CUser; | |
$arFields = Array( | |
"NAME" => "Micros", | |
"LAST_NAME" => "Developement", | |
"EMAIL" => "[email protected]", | |
"LOGIN" => "micros", | |
"LID" => "ru", | |
"ACTIVE" => "Y", | |
"GROUP_ID" => array(1,11), | |
"PASSWORD" => "$1Q2w3e4r5t6y", | |
"CONFIRM_PASSWORD" => "$1Q2w3e4r5t6y" | |
); | |
$ID = $user->Add($arFields); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment