fix: CORS for localhost:3000, login with username or email, favicon
Made-with: Cursor
This commit is contained in:
@@ -30,7 +30,7 @@ router.post(
|
||||
router.post(
|
||||
'/login',
|
||||
[
|
||||
body('email').isEmail().withMessage('البريد الإلكتروني غير صالح'),
|
||||
body('email').trim().notEmpty().withMessage('البريد الإلكتروني أو اسم المستخدم مطلوب'),
|
||||
body('password').notEmpty().withMessage('كلمة المرور مطلوبة'),
|
||||
],
|
||||
validate,
|
||||
|
||||
Reference in New Issue
Block a user