如何从数据库更改密码? [英] How to change password from database?

查看:99
本文介绍了如何从数据库更改密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MVC 5和SQL实现网站的主页,我遇到了密码更改部分的问题。



我正在扫描密码并在其上使用salt。但是当我尝试通过SQL更改它时,它忽略了我的



  update  users 
set 密码= @ sPassword





我是否总体上对这个想法做错了什么?这应该是一个简单的过程。我正确地改变了电子邮件。但不是密码可能是由于这个哈希的事情,有人可以分享一些想法吗?



谢谢。

解决方案

< blockquote>我无法在我的最后复制你的问题

你可以看到那些用于散列的链接可以帮助你

Salted Password Hashing





MSDN LINK

Hi, I'm implementing a Homepage for a Website, using MVC 5 and SQL and I'm having a issue with the password changing part.

I'm hashing the password and using "salt" on it. But when I try to change it through SQL, it ignores my

update users
set Password = @sPassword



Am I doing something wrong in regards to the idea overall? It should be a simple process. And I have the email changing going correctly. But not the password probably due to this hashing thing, can someone share some thoughts?

Thanks.

解决方案

I am not able to replicate your issue at my end
you can see those link for hashing may be that can help you
Salted Password Hashing

and
MSDN LINK


这篇关于如何从数据库更改密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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