Skip to content

Instantly share code, notes, and snippets.

@BedrosovaYulia
Created December 28, 2022 08:05
Show Gist options
  • Save BedrosovaYulia/53c300b4c8822f63b1f579293793b12c to your computer and use it in GitHub Desktop.
Save BedrosovaYulia/53c300b4c8822f63b1f579293793b12c to your computer and use it in GitHub Desktop.
<?
$dbUser = \Bitrix\Main\UserTable::getList(array(
'select' =>array('ID','LOGIN'),
'filter' => array('ID' => 198)
));
while ($arUser = $dbUser->fetch()){
$qText="update b_user set PASSWORD_EXPIRED='Y' WHERE ID=".$arUser['ID'];
print $qText;
print "<br/>";
global $DB;
$res = $DB->Query($qText);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment