grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026isValidId($_POST['record'])) { LoggerManager::getLogger()->warn('Invalid ID in post request'); } else { $record = $_POST['record']; $focus->retrieve($record); if (!$focus->change_password($_POST['old_password'], $_POST['new_password'])) { SugarApplication::appendErrorMessage($focus->error_string); SugarApplication::redirect('index.php?action=ChangePassword&module=Users&record=' . $record); } // Send to new user wizard if it hasn't been run $ut = $GLOBALS['current_user']->getPreference('ut'); } if (empty($ut)) { SugarApplication::redirect('index.php?module=Users&action=Wizard'); } // Otherwise, send to home page SugarApplication::redirect('index.php?module=Home&action=index'); } require_once('modules/Administration/Forms.php'); require_once('modules/Configurator/Configurator.php'); $configurator = new Configurator(); $sugarConfig = SugarConfig::getInstance(); require_once('include/SugarLogger/SugarLogger.php'); $sugar_smarty = new Sugar_Smarty(); $sugar_smarty->assign('MOD', $mod_strings); $sugar_smarty->assign('APP', $app_strings); $sugar_smarty->assign('MODULE', 'Users'); $sugar_smarty->assign('ACTION', 'ChangePassword'); $sugar_smarty->assign('return_action', 'index'); $sugar_smarty->assign('APP_LIST', $app_list_strings); $sugar_smarty->assign('config', $configurator->config); $sugar_smarty->assign('error', $configurator->errors); $sugar_smarty->assign('LANGUAGES', get_languages()); $sugar_smarty->assign('PWDSETTINGS', $GLOBALS['sugar_config']['passwordsetting']); $sugar_smarty->assign('ID', $current_user->id); $sugar_smarty->assign('IS_ADMIN', $current_user->is_admin); $sugar_smarty->assign('USER_NAME', $current_user->user_name); $sugar_smarty->assign("INSTRUCTION", $mod_strings['LBL_CHANGE_SYSTEM_PASSWORD']); $sugar_smarty->assign('sugar_md', getWebPath('include/images/sugar_md_open.png')); $sugar_smarty->assign('OLD_PASSWORD_FIELD', '