不用asp.net和c#即可忘记密码编码,而无需使用忘记密码控制 [英] forget password coding in asp.net and c# without using forget password control

查看:96
本文介绍了不用asp.net和c#即可忘记密码编码,而无需使用忘记密码控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 忘记asp.net和c#中的密码
通过电子邮件而无需使用忘记密码控制

解决方案

您可以轻松生成电子邮件并将其发送给用户.如果密码未存储为哈希,则可以发送当前密码,否则必须发送新密码.

要发送电子邮件,可以使用MailMessage类.


使用用户名从SQL匹配值.如果找到记录,然后发送带有登录凭据的电子邮件给用户,则可以发送错误通知.


hi forget password in asp.net and c#
through email with out using forget password control

解决方案

You can easily generate an email and send it to the user. If the password is not stored as an hash, you can send current password otherwise you will have to send a new password.

To send an email, you can use MailMessage class.


Fatch values from SQL using user name. If record found than send email to user with his login credential, otherwise you can send error notification.


这篇关于不用asp.net和c#即可忘记密码编码,而无需使用忘记密码控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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