1

Could someone explain to me how to send a verification email, without using asp.net usercreation wizard, i want it so that when the email is sent, it will contain a url link to activate an account

CalumB
  • 55
  • 1
  • 8

2 Answers2

2

First Add a field to Users table called RegisterGuidId with type uniqueidentifier

Second after registration send a normal email to user with link to your activation page with new generated RegisterGuidId

Third after user redirected to you activation page use the generated guid to get user data from database

Mohamed Salah
  • 959
  • 10
  • 40
1

Basically what you need to do is, when the user registers generate a hash that is specific to the user (ideally something that can't be predicted by the bad guys) -> send this hash to the email that the user provided.

If you get a request with the url/hash that means he verified his account.

That's the basic idea anyway.

Dimitar Dimitrov
  • 14,868
  • 8
  • 51
  • 79