Search code examples
asp.netvalidationcreateuserwizard

CreateUserWizard control problem (password issue)?


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..


Solution

  • 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.