From 4c738e8f434d0304f8df131e864a7776cb62affc Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sat, 25 Jul 2026 00:23:27 +0300 Subject: [PATCH] Remove legacy encrypt_decrypt.php - bootstrap.php already provides encryptionHelper --- backend/Admin/auth/login.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/backend/Admin/auth/login.php b/backend/Admin/auth/login.php index 237337d6..e496f860 100644 --- a/backend/Admin/auth/login.php +++ b/backend/Admin/auth/login.php @@ -6,20 +6,8 @@ require_once __DIR__ . '/../../core/bootstrap.php'; require_once __DIR__ . '/../../functions.php'; -// تحميل التشفير بأمان -$encFile = realpath(__DIR__ . '/../../encrypt_decrypt.php'); -if ($encFile && file_exists($encFile)) { - require_once $encFile; -} - +// $encryptionHelper is already initialized by bootstrap.php (lines 159, 182) global $encryptionHelper; -if (!isset($encryptionHelper) || $encryptionHelper === null) { - if (class_exists('EncryptionHelper')) { - $key = getenv('ENC_KEY') ?: ''; - $iv = getenv('initializationVector') ?: ''; - $encryptionHelper = new EncryptionHelper($key, $iv); - } -} $fingerprint = filterRequest('fingerprint'); $password = filterRequest('password');