如何从数据库更改密码? [英] How to change password from database?
问题描述
我正在使用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屋!