关于在我的项目中提供的设施中的密码更改 [英] regarding to password change in facility provide in my project

查看:40
本文介绍了关于在我的项目中提供的设施中的密码更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友我正在开发一个项目,项目提供用户密码更改的设施我是后端使用mysql ............请帮帮我.......... ......

hello friend i am develop one project that project provide the facility of the user password change i am backend use mysql............please help me ................

推荐答案

要让用户更改密码,首先应确保它与创建该帐户的用户相同前一段时间。这是一项额外的安全检查,不允许其他人更改某人帐户的密码,以防他们意外访问该帐户。为此,要求回答安全问题;用户在创建帐户时提供了安全问题以及安全性答案。完成后,您可以向用户显示一个表单,询问他的旧密码和新密码。当用户提供两者时,只需将旧密码与已存储在数据库中的用户密码进行比较,如果两个密码匹配,则用新密码更新密码。就是这样。
To let a user change his password, first of all you should make it sure that it is the same user who has created that account some time ago. This is an additional security check not to let some other persons change the password of someone's account in case they accidentally got access to that account. For that, answer to the security question is asked; the user had provided the security question as well as the security answer while creating the account. Once you are done with it, you can display a form to the user asking his old and new passwords. When user has provided both, just compare the old password with the password of the user which is already stored in your database and in case both passwords are matched, update that password with the new one. That's it.


这篇关于关于在我的项目中提供的设施中的密码更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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