From: charleswrayjr Date: Sat, 13 Sep 2025 14:09:49 +0000 (-0500) Subject: Adding auth, media, and messaging. X-Git-Url: https://git.phasecustomsoft.com/static/git-favicon.png?a=commitdiff_plain;h=1da634b84eab4a00efef9fa82f4a4408d9dbe86d;p=phs-api.git Adding auth, media, and messaging. --- 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) {