Hello everyone,
I would like to create a sign up process. So, the registration page would be public, accessible from a button on the login page. However, I would like to validate the email address sending an email with a confirmation link, to validate the user account.
What I think :
- When the user registers, I could generate a random string of X characters
- Add this generated value in a column of the user table
- Send a validation link to the user, to which the generated code is concatenated
- Create a page where the user can enter a code, which is supposed to be the previous generated code, in order to activate his account
Does this seem correct to you ?
If yes, how could I generate the link with the code to send it in the validation email, in order to enable the user to click on it, and validate his account ?
Thank you for your experience ! :)