ASP,NET中的电子邮件变体 [英] Email varification in ASP,NET

查看:104
本文介绍了ASP,NET中的电子邮件变体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在使用c#和.net 3.5。我确实创建了登录部分和唱歌部分但我需要在他们唱歌后发送链接到用户的电子邮件地址。用户将点击该链接,之后他的帐户将处于活动状态,他们可以使用用户名和密码登录....



有人可以帮助我吗????



谢谢

Hi all,

I am working with c# and .net 3.5. I did created login portion and sing up portion but I need to send link to users email address after they sing up. user will click on that link and after that his account will be active and they can login in with user name and password....

Can some one help me please????

Thanks

推荐答案

你可以做的就是当用户点击注册时将加密的唯一代码发送到您的URL作为查询字符串输入的电子邮件地址,并将解密的值与用户信息一起存储,并使用户的状态不活动。



当用户点击链接并在页面加载时进入你的页面时,通过解密查询字符串以及它匹配的任何用户来验证查询字符串,激活用户。



注意:您需要确保加密的代码对所有用户都是唯一的。



这就是它的工作原理。



希望这会对你有所帮助。
well what you can do is while the user click on signup send an encrypted unique code to the email address entered alons with your URL as query string and store the decrypted value along with user info and make the status of the user De-active.

When the user clicks the link and comes to your page on page load verify the query string by decryting the same and to whatever user it matches activate the user.

note: you need to make sure the encrpted code is unique for all users.

That''s how it works.

Hope this helps you.


这篇关于ASP,NET中的电子邮件变体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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