通过邮件中的活动链接激活用户登录 [英] Activating user login through acrtivation link from his mail

查看:72
本文介绍了通过邮件中的活动链接激活用户登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在我的项目中,当用户注册时,单击我们发送到他的邮件的链接后,必须对他的注册进行身份验证

如何进行

Hi

in my project when user registered his registration have to be authenticated after he clicks the link which we sent to his mail

How to proceed
help me if any one knows.

推荐答案

本文似乎在谈论一种实现此目的的方法:

http://www.amergerzic.com/post/AccessEmailConfirmation.aspx [
This article seems to talk about one way to do this:

http://www.amergerzic.com/post/AccessEmailConfirmation.aspx[^]

It''s fairly trivial to roll your own solution though:

1) User signs up
2) You create a unique token associated with the user
3) Email him a link with the unique token in the url querystring
4) The Url basically updates a flag in the database saying the user is now confirmed (or rather his email is confirmed)

Whenever the user signs in, this flag is checked first to make sure only users with confirmed emails can login successfully.


这篇关于通过邮件中的活动链接激活用户登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆