I'm currently building a website where people can register and they can have their own pages of content. I have created a custom login page not using the Create user wizard provided on the Microsoft Visual studio 2010. I have a SQL Database at the back end with
tblUsers
where users register will be saved. I have my email smtp settings configured and capable of sending emails using the registering persons email. I have tested this and it works.
The Problems
(1) I'm confused as to how I can generate the activation link to be attached to be sent with the email.
(2) How can i program the code to update a field in the SQL table related to the user
e.g: User verified = true
when the user clicks the link sent through the email.
(3) How can I block the user from being able to log in to the site without going through the verification process? (I am aware this can easily be done by changing few things on the Create User wizard, however I created my registration customarily therefore it runs on a register button click event) Therefore I can't seem to get my head around on how to do it.
Please try to help me out if possible will greatly appreciate it.