https://supertokens.com/ logo
change password validation
a

artico

04/29/2023, 7:27 AM
change password validation: Hi guys! i'm implementing change password flow according to your docs, and i've noticed that there is no validation for the new password as with signUp (no errors like "Password must contain at least one alphabet", etc.) How this can be achieved? Really don't want to re-implement this feature. And do you have plans to include change password into your middleware? I think it actually should be there...
Also would be nice to send email confirmation on password change.
r

rp

04/29/2023, 1:22 PM
Hey @artico this is a known issue. We will be changing the function to add password validation to the
updateEmailOrPassword
function as well. But until then, you will have to reimplement the password policy for this custom API.