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;