Implement a server-side check to ensure the new password is different from the current one.
Dhanush check check checkinggg
We recommend following these key steps to ensure secure application design, development, and deployment, in line with the CERT-In guidelines for Secure Application Design, Development, Implementation & Operations: