r/nestjs • u/joaofreire29 • 8h ago
Preventing Password Reuse in the @nestjs/authentication Password Reset Flow
5
Upvotes
Hey guys, good evening! I’ve started testing the new `@nestjs/authentication` package and have a question: in the password reset flow, is there a way to prevent the password from being changed if the new password is the same as the old one? I’m not sure at which point in the flow I should implement this validation.
Could someone help me out?
I’m following the example provided here: https://docs.nestjs.com/security/authentication#reset-forgotten-passwords