update validation schema
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user