Fixed token issue
This commit is contained in:
1 parent
9be266c52f
commit
f169809692
2 files changed
+4
-4
No files matched your search
@@ -220,8 +220,7 @@ const resetPassword = async (req, res) => {
|
||||
})
|
||||
.select("-password")
|
||||
.select("-profileImage");
|
||||
const token = issueToken(userWithoutPassword);
|
||||
return { user: userWithoutPassword, token: token };
|
||||
return userWithoutPassword;
|
||||
} else {
|
||||
throw new Error(errorMessages.DB_USER_NOT_FOUND);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user