Actix web: creating a password reset endpoint

Is there a state of the art way on how to reset passwords using actix web? I only have a password update logic in mind but this is combined with the old password. But if someone forgot their password than he/she can't pass the old password.

This isn't Actix-web specific. You should search about magic links and token invalidation; the idea is to send the magic link for resetting the password to the user via email.

1 Like