如何从具有非唯一用户名的自定义 ASP.Net 会员提供商获取用户 ID?
我创建了一个自定义的 asp.net 会员资格提供程序,用于根据旧数据库进行身份验证。我遇到的问题是如何处理具有相同用户名的用户。
我曾多次尝试说服我的老板用户名应该是唯一的,但这没有用。
更新:
这似乎确实是身份验证系统的根本缺陷,但我如何说服我的老板他需要更新他的 Powerbuilder 代码?我已经尝试了近两年,他认为唯一的(用户名、密码)就足够了。我还想将密码存储在单向哈希而不是明文中。
I've created a custom asp.net membership provider that authenticates against a legacy database. The problem I'm running into to is how to handle users that have same username.
I've repeatedly tried convincing my boss that a username should be unique but this has been to no avail.
Update:
It does seem to be fundamental flaw with the authentication system, but how do I convince my boss that he needs to update his Powerbuilder code? I've been trying for nearly 2 years now and he thinks a unique (username,password) is good enough. I also want to store the passwords in a unidirectional hash instead of plaintext.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有些东西必须是独一无二的。用户 ID 是一个唯一的 GUID,我的电子邮件地址是唯一的,因此您可以使用它。
Something has to be unique. The user id is a guid which is unique, I have email address as unique so you can use that.