1
Currently, what is the best way (the most secure and efficient) to require the user to confirm the registration through a link sent in the email informed, what should I pay attention in this process, what steps should I follow, the token has a lot of relevance? or I can only use a function like this: $token = md5(uniqid(Rand(), true); available in php.net?
Something else, usually what is the lifetime of that token or what way I can use to validate it via link?
thought enter some fields like; token, date, status and use the registration id itself to create this validation, but I’m having doubts about generating new tokens or simply checking the date and status, keeping the same token always, this is a problem?
if someone can contribute somehow I thank!!!
Thank you for your help, advice noted, I’m taking into account all that was said to me!
– Anj Junior