change mobile number Update Profile get Profile etc
This commit is contained in:
parent
a9e4b349aa
commit
0d126f6496
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user