e-mail activation design

Source: Internet
Author: User

Why use mail to activate a user? In order to ensure the correct mailbox, the mailbox address is guaranteed to exist. (Regular expressions can only check that a message is formatted correctly, but not the authenticity of the message)

Http://...../UserController.ashx?action=active&username=ABC (There is a vulnerability, because this does not enter the mailbox can also know how to activate)

1, need to enter the mailbox before you know how to activate!

http://...../UserController.ashx?action=active&username=ABC&activeCode=232323

2. Where does the activation code exist?

Is there a session available? No, because if the registered browser and the active browser are not the same browser, the activation code will not be available in the new browser, resulting in activation failure!

The activation code exists in the database best!

But because the activation code is used only once, it is a bit wasteful to add a field to the Registered user table! My practice is to put the activation into a separate table!

e-mail activation design

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.