diff --git a/api/controllers/auth.js b/api/controllers/auth.js index f3699badd1..4812f022f3 100644 --- a/api/controllers/auth.js +++ b/api/controllers/auth.js @@ -36,7 +36,7 @@ export const login = async (req, res, next) => { process.env.JWT ); - const { password, isAdmin, ...otherDetails } = user._doc; + const { isAdmin, ...otherDetails } = user._doc; res .cookie("access_token", token, { httpOnly: true,