update validation schema

This commit is contained in:
2025-10-16 11:24:30 +07:00
parent 1be51f634b
commit 2907cb6347
2 changed files with 8 additions and 10 deletions

View File

@@ -67,8 +67,7 @@ class AuthService {
if (!passwordMatch) throw new ErrorHandler(401, 'Invalid credentials');
if (!user.is_active) throw new ErrorHandler(403, 'User is inactive');
if (!user.is_approve)
throw new ErrorHandler(403, 'Your account has not been approved by admin yet.');
if (!user.is_approve) throw new ErrorHandler(403, 'Your account has not been approved by admin yet.');
const payload = {
user_id: user.user_id,