注册后如何创建激活链接?

时间:2015-07-30 11:23:11

标签: java spring spring-mvc web

我正在使用Spring mvc并不重要..

我有一个注册部分。 现在My requirement is, After fullfill signup, I want to create an activation link and send it to the user by mail..

对于发送邮件,我正在关注this code 现在请任何人告诉我如何创建激活链接。

1 个答案:

答案 0 :(得分:2)

 1.  use of a second table, called pending.

It's basically an 'extension' of the users table, or a copy of the main data, depending on your structure.

2.then generate activation key.
3.send it to user.
4.create a page which will check the key when use click on that link.

我认为这对你来说很好..