使用.net Framework 3.5忘记密码 [英] Forget Password using .net framework 3.5

查看:156
本文介绍了使用.net Framework 3.5忘记密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

我有一个要求,那就是当我单击忘记密码"按钮时,它将在该窗口中显示一个窗口,请像这样输入您的电子邮件



我输入了电子邮件,然后单击提交"按钮.
我想在我的电子邮件地址中接收用户名和密码.


一件事是我所有这些数据都放在数据库的单个表中.

请任何人帮助我.


问候

Venkat.S

[edit]删除了虚假的代码块等-OriginalGriff [/edit]

Hi friends,

i have one requirement that is when i click forget password button it ll display one window in that window please enter your email like that



i entered email and click submit button.
i want to Receive my user name and password in my e mail address.


and one thing i have this all data in single table in my data base.

please help me any one knows .


Regards

Venkat.S

[edit]Spurious code blocks, etc. removed - OriginalGriff[/edit]

推荐答案

规则一:请勿这样做.

为此,您需要以明文或加密形式存储密码,这两者都是安全隐患.而是存储哈希密码(此处有一些信息:密码存储: [ ^ ]),并在用户松开它时将其重置为随机值.然后,您将新的随机密码发送到他们在注册时输入的电子邮件地址,并为用户提供了一种更改密码的方法.

不要将密码发送到任何旧的电子邮件地址:您怎么知道它实际上是用户?
Rule one: don''t do it.

To do this requires you to store the password in either clear text or an encrypted form, both of which are security risks. Instead, store a hashed password (there is some info here: Password Storage: How to do it.[^]) and reset it to a random value when the users looses it. You then send the new, random password to the email address that they entered when they registered, and provide a means for the user to change it.

Do not send a password to any old email address: how do you know it is actually the user?


这篇关于使用.net Framework 3.5忘记密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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