[RESOLVED]Why won't entering a password that confirms to the password requirements, work?

I’ve purchased the book Professional ASP.NET MVC 5 (by Wrox) and am working my way through it. I’m in chapter 7, which deals with security and MVC. (BTW, I tried registering on the Wrox website for their forums, but for whatever reason I’ve
never gotten a confirmation/validation email from them, although they claimed they would send me one. I’m sorry to bother you all with this, but I’m stuck and can’t get help from the source.)

I’m at the point where I’ve created a basic project, using the Package Management Counsel to add the items for the project per the instructions in the book. That all went fine. Then I went to the Secure controller per the book’s instructions. There I tried
registering by entering my email account and a password, per the page’s instructions.

But it failed with the error "Password must have at least one non letter or digit character".

The password I’m trying to use has two digits in it. So, what’s going on here? When I enter
exactly what’s required, and it’s not accepted, then I don’t know what to do. So what’s wrong and why won’t it work?

check the regex expression for valid characters. the messages says one non digit or letter, such as ! or ?

 

I tried adding the "!" character to the password I was using. That did work, so thank you for saying that. But I still maintain that the phrase they used "Passwords must have at least one non letter
or digit character" means that either one or the other, but both are not required. Which is why I used a digit. Since it works when I used both a digit and a non letter, the error message (I believe) should read, "Passwords must have at least
one non letter and digit character".

Leave a Reply