change mobile number Update Profile get Profile etc

This commit is contained in:
pawan-dot 2024-07-08 12:23:50 +05:30
parent a9e4b349aa
commit 0d126f6496

View File

@ -671,7 +671,7 @@ export const ChangePassword = async (req, res) => {
} }
if (req.body.newPassword !== req.body.confirmPassword) { if (req.body.newPassword !== req.body.confirmPassword) {
return res.status(400).json({ message: 'old password and confirm Password does not match' }); return res.status(400).json({ message: 'New password and confirm Password does not match' });
} }
patient.password = req.body.newPassword; patient.password = req.body.newPassword;