CreateUserWizard控制问题(密码问题)?
我输入的每个密码以及单击按钮时,它都会告诉我密码错误。它在其属性中激活此字段:InvalidPasswordErrorMessage。
我怀疑用户尝试使用密码连接数据库。
另一个奇怪的事情是,即使密码创建失败..(无效),控件也会将记录存储在数据库中...例如在成员表中的PasswordFailed中,我得到一个日期和用户详细信息(控制在少数情况下做到了这一点,这对登录不利)..
然而,主要问题是密码总是无效..
Every password that i enter and when i click the button, it tells me that the password is wrong. it activates this field in its properties: InvalidPasswordErrorMessage.
I suspect that the user tries to use the password to connect to the database.
Another weird thing, is even when a password fails to be created..(invalid), the control stores the record in the database... for example in the PasswordFailed in the members table, i get a date and the users details (The control did it in a few occassions, which is bad for login)..
The main issue however, is with the password always being invalid..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在会员配置中,您将找到用于设置最小非字母数字字符数、最小长度等的属性。尝试降低所有这些值,看看它是否接受您的密码。像“abc%12U8”这样的复杂密码也应该被接受。
但是错误消息也会在数据库连接错误时显示,因此您应该测试与数据库的连接。
此外,数据库身份应该是数据库上所有“aspnet_.*”角色的成员。
In the membership configuration you will find attributes for setting minimum number of non alpanumeric characters, min length etc. Try lowering all such values and see if it accepts your passwords. A complex password like "abc%12U8" should also be accepted.
But the error message also displays upon db connection errors so you should test the connection to the database.
also the db identity should be a member of all the "aspnet_.*" roles on the database.