English 中文(简体)
ASP. 电子邮件和账户核证净额
原标题:ASP.Net Email and Account validation
  • 时间:2010-03-25 13:39:40
  •  标签:
  • asp.net

i 想知道是否有任何人能够向我建议如何在我的伙伴关系中执行电子邮件和账户验证特征。 净网站。 因此,当用户创建账户时,将电子邮件发送至所使用的电子邮件地址,用户需要核实电子邮件地址,以便能够登录。

感谢

最佳回答

建议的工作流程。

  1. Create an account for the user in your database and mark the account as "to be validated"
  2. Produce a random key, maybe a GUID and add it to the users account
  3. Email the random key to the user along with a unique URL, e.g www.myurl.com/validateuser.aspx?userid=45532 To email using asp.net use the system.net.mail namespace - lots of bits on the internet about this.
  4. On validateuser.aspx ask user to enter key sent to them in email.
  5. Check if keys match. If so update db record to "validated"

<><>Edit>/strong>

顺便提一下:Stack Overflow。 如果你使用表格的话,

问题回答

在验证后,除在数据库和登记密码后面的纽扣外,你可以定期使用电子邮件进行id检,以通过系统发送电子邮件。

许多电子邮件发送功能可在互联网上查阅。

在使用编码对记录进行核对之后,电子邮件要么存在于ur数据库,要么没有。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签