Question

there is a send activation code button. A click on the button. it should send the activation code to the customer. i don't find any useful article for this. anybody can explain?

No correct solution

OTHER TIPS

You'll need to generate and store some kind of secret information unique to a particular user, then send in an email or something with a link back to your application. You could read the secret back from the query string, or link to a page with a login and a textbox to enter it. However you want to work the page.

Compare the secret and user credentials given against the stored value.

This is fairly naive approach that doesnt even attempt to tackle some serious security concerns with this type of setup, but for a simple one off email verification you can get away with it.

Just be extremely careful about what type of data you intend to send to your users in any emails.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top