diff --git a/Admin/auth/loginWallet.php b/Admin/auth/loginWallet.php index 1d7eb4c..d50061c 100644 --- a/Admin/auth/loginWallet.php +++ b/Admin/auth/loginWallet.php @@ -11,7 +11,8 @@ require_once __DIR__ . '/../../core/bootstrap.php'; use Firebase\JWT\JWT; // التحقق من الجلسة الحالية للأدمن -$admin = authenticateJWT(); +$jwtService = new JwtService($redis ?? null); +$admin = $jwtService->authenticate(); if ($admin->role !== 'admin') { jsonError("Unauthorized. Admin access required.");