Fix status warning in admin login
This commit is contained in:
@@ -78,15 +78,17 @@ try {
|
|||||||
|
|
||||||
if ($admin) {
|
if ($admin) {
|
||||||
// 1. التحقق من حالة الحساب
|
// 1. التحقق من حالة الحساب
|
||||||
if ($admin['status'] === 'pending') {
|
if (isset($admin['status'])) {
|
||||||
jsonError("حسابك قيد المراجعة حالياً. يرجى الانتظار للموافقة.");
|
if ($admin['status'] === 'pending') {
|
||||||
exit;
|
jsonError("حسابك قيد المراجعة حالياً. يرجى الانتظار للموافقة.");
|
||||||
} elseif ($admin['status'] === 'suspended') {
|
exit;
|
||||||
jsonError("هذا الحساب معلق. يرجى التواصل مع المدير.");
|
} elseif ($admin['status'] === 'suspended') {
|
||||||
exit;
|
jsonError("هذا الحساب معلق. يرجى التواصل مع المدير.");
|
||||||
} elseif ($admin['status'] === 'rejected') {
|
exit;
|
||||||
jsonError("تم رفض طلب الانضمام لهذا الحساب.");
|
} elseif ($admin['status'] === 'rejected') {
|
||||||
exit;
|
jsonError("تم رفض طلب الانضمام لهذا الحساب.");
|
||||||
|
exit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2. التحقق من كلمة المرور
|
// 2. التحقق من كلمة المرور
|
||||||
|
|||||||
Reference in New Issue
Block a user