As Rook pointed out below, the easiest way is to use Captcha.
If you also need to check your email, see below.
You can create a claim GUID and pass it to the email address that will mark the user as active.
For example, add the ApproIDID column to the users table and generate a new GUID when the user logs in, i.e.
You must mark the user as inactive at this point.
Example Guid 3F2504E0-4F89-11D3-9A0C-0305E82C3301
Then pass the user ID and GUID in the body of the message
<a href="http://www.mysite.com/verify.aspx?UserId=TheUserId&ApprovalId=3F2504E0-4F89-11D3-9A0C-0305E82C3301">Verify your account</a>
Then a simple verify.aspx page
Code for
string UserId = Request[UserId].ToString();
string ApprovalId = Request[ApprovalId].ToString();
TODO:
source
share