You only need to continue with this action if you are upgrading/migrating to the new (post Jan 2022) encryption setup.
Please take a backup of your current AES config key (for each company), and your 'logins' database table
Please ensure you have access to ALL companies registered under this instance, if using multiple companies. Only one user should perform the entire migration.
This activity will invalidate all existing user passwords. You must set them again using THIS user account.
";
echo "Current User ID: $session_user_id ";
if ($config_aes_key) {
echo "Current (legacy) AES key: $config_aes_key
";
echo "Below are the decrypted credentials for five login entries, please confirm they show and are correct before continuing. Do NOT continue if no entries are shown or if the decrypted passwords are incorrect. ";
$sql = mysqli_query($mysqli,"SELECT *, AES_DECRYPT(login_password, '$config_aes_key') AS login_password FROM logins WHERE (company_id = '$session_company_id' AND login_password IS NOT NULL) LIMIT 5");
foreach ($sql as $row){
echo $row['login_username'] . ":" . $row['login_password'];
echo " ";
}
echo " ";
?>
";
echo "Please ensure upgrade is required. If you are sure you need to update, ensure the AES key is set correctly for this company.";
}
?>