]> PHS Git Server - phs-api.git/commitdiff
Adding auth, media, and messaging.
authorcharleswrayjr <charleswrayjr@gmail.com>
Sat, 13 Sep 2025 14:09:49 +0000 (09:09 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Sat, 13 Sep 2025 14:09:49 +0000 (09:09 -0500)
src/controllers/auth.controller.js

index 73cef60e0a34be89dd7c7d363a9950f9c6e7ffec..f676b302e2106edcc909d002388eed05ee40eb73 100644 (file)
@@ -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) {