From 1da634b84eab4a00efef9fa82f4a4408d9dbe86d Mon Sep 17 00:00:00 2001 From: charleswrayjr Date: Sat, 13 Sep 2025 09:09:49 -0500 Subject: [PATCH] Adding auth, media, and messaging. --- src/controllers/auth.controller.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/controllers/auth.controller.js b/src/controllers/auth.controller.js index 73cef60..f676b30 100644 --- a/src/controllers/auth.controller.js +++ b/src/controllers/auth.controller.js @@ -80,13 +80,7 @@ module.exports = { if (!user || !user.is_active || user.is_deleted) { return res.status(401).send({ success: false, user: null, token: null }); } - const auth = await db.authentication.find_by_user_id(user.id); - logger.warn(auth); - if (auth.is_locked) { - return res.status(401).send({ message: 'Your account is locked due to suspicious activity. Please contact us to continue.' }); - } logger.warn(user); - logger.warn(auth.password); logger.warn(password); const isValid = await user.comparePassword(password, auth); if (!isValid) { -- 2.43.0