From a600ac30afc97aded4daeef2f7ec6fcc992850a1 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Wed, 28 Aug 2024 10:07:47 -0700 Subject: [PATCH] Removed unused token code --- Server/controllers/authController.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Server/controllers/authController.js b/Server/controllers/authController.js index 03f7f1b66..0cf297a47 100644 --- a/Server/controllers/authController.js +++ b/Server/controllers/authController.js @@ -151,8 +151,7 @@ const loginController = async (req, res, next) => { // Happy path, return token const token = issueToken(userWithoutPassword); - user.authToken = token; - await user.save(); + // reset avatar image userWithoutPassword.avatarImage = user.avatarImage;