How does user registration email confirmation work?

When you register on any website, you receive an email with a confirmation link in the inbox of the email address provided during registration. Only when you click on this link will you be able to log in.

How does it work and how can I implement the same thing in Struts2?

+3
source share
2 answers

There may be many different ways to do this. The requirements are that references to the "magic" confirmation are very difficult to synthesize. In other words, it should be that the only way to get a link to confirm work is to go through the registration process.

You can generate random (very large) numbers and use them as keys, but this is usually not very safe (since "random" usually does not mean " really random"). Another approach is to use "secret" information that only an authorized user and the site itself can know, and then a hash. A combination of these two approaches will also work.

, , "" . URL, . ( " " URL , , ).

, "" , .

+12

, , ?

, . script, , .

.

+2

Source: https://habr.com/ru/post/1780882/


All Articles