A
A
Alexander2018-08-23 23:02:26
MySQL
Alexander, 2018-08-23 23:02:26

How to properly implement account verification and password recovery?

You need to confirm your account by email and reset your password. In both cases, you need to generate a link, send it to the user's mail, and when the user clicks on the link, determine who it is. There is an idea to add jwt to the link and then extract the necessary data from it. Is this the right way to do it or should it be done differently?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
ThunderCat, 2018-08-23
@smoyke

Just a hash from a valid name plus a microtime, write the hash to the database and send a link with this hash as a get parameter. We check that Vasya came with the right hash, let Vasya change the password / email.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question