Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

When Password is provided in non-English (that is Russian / Spanish / French) ASPNet Identity provider throws error

$
0
0

I am working on an application which is going to support 10-15 different languages.

Below is my ASPNet Identity providers password validation configuration 

manager.PasswordValidator = new PasswordValidator
{
    RequiredLength = 7,
    RequireNonLetterOrDigit = false,
    RequireDigit = true,
    RequireLowercase = true,
    RequireUppercase = true
};

Based on above configuration user only has to provide a password which should have upper case, lower case , number and minimum length 7 character. 

Now when a user provide a password as "Выбрать001Выбрать001" the Identity provided throws the error as"Passwords must have at least one lowercase ('a'-'z'). Passwords must have at least one uppercase ('A'-'Z')."

I have spent couple of hours but can't able to get any clue. Any Valuable help is much appreciated.

Thanks,

Mahesh


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>