I am using MVC4 and simplemembership to create a web application.
Where or how do I set the password requirements? ie - that the password needs to be a minimum 6 characters - needs one alpha numeric - needs one capital etc
I thought it was in the web config?
Thanks in advance
In
AccountsModels.cs
there is a classRegisterModel
. You can annotate the properties there to add validation:For the specific requirements you can add a Regex that suits your needs with the
[RegularExpression]
annotation.