service 3

This commit is contained in:
Hamza-Ayed
2026-05-02 14:39:50 +03:00
parent 02a16f0ca0
commit a6a620f002

View File

@@ -21,7 +21,20 @@ try {
$user = $stmt->fetch(PDO::FETCH_ASSOC);
if ($user) {
// التحقق من حالة الحساب
if ($user['status'] === 'pending') {
jsonError("حسابك قيد المراجعة حالياً. يرجى الانتظار للموافقة.");
exit();
} elseif ($user['status'] === 'suspended') {
jsonError("هذا الحساب معلق. يرجى التواصل مع الإدارة.");
exit();
} elseif ($user['status'] !== 'approved') {
jsonError("لم يتم تفعيل حسابك بعد.");
exit();
}
// التحقق من كلمة المرور
if (password_verify($password, $user['password'])) {
// فك تشفير البيانات للعرض في التطبيق