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');