从自定义用户列表迁移到 SQL Server 中的 MS 成员资格
抱歉,我什至不知道如何准确地问这个问题......但我写了一个带有登录的网站。为此,我制作了自己的用户和密码表,并自己对密码进行了哈希处理。现在,我更愿意转向 Microsoft 内置的会员提供程序,其中包含 sql server 中的 asp.net。有谁知道有什么好的迁移方法吗?
到目前为止,我唯一真正的想法是让两个系统同时运行,然后当用户登录时,在我的旧系统中验证它们,然后要求他们重新输入密码并将新内容保存在微软的系统中...然后从我的旧系统中清除记录。最终,我希望这能让每个人都进入新系统。但这看起来很烦人而且很混乱。有更好的办法吗?
抱歉,如果这没有任何意义。
Sorry, I'm not even sure how to ask this exactly... but I wrote a website with logins. For that, I made my own users and passwords tables and hashed the passwords myself. Now, I would much rather move to Microsoft's built in membership provider with asp.net in sql server. Does anybody know a good way to migrate over?
The only real idea I've had so far is to make both systems run simultaneously, then when a user logs in, validate them in my old system, then ask them to re-enter their password and save their new stuff in the microsoft's system... then clear the record out of my old system. Eventually, I would hope that would move everybody into the new system. But that seems annoying and messy. Is there some better way?
Sorry if that doesn't make any sense.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您只需使用自定义会员资格提供商。
这是一个很好的SO链接
如何实施 ASP我的域模型中的 .NET 成员资格提供程序
You just use the custom membership providers.
Here is a good SO link
How to implement ASP.NET membership provider in my domain model