Validating password complexity with a custom registration validator
Password complexity requirements for users creating a new account is a good place to encourage users to devise strong passwords. The RegistrationFeature
plugin has default validations as it uses the RegistrationValidator
built into ServiceStack. In this recipe, we will look at overriding this functionality to give you more control over registration validation.
Getting ready
First, we are going to need an application to integrate; we will start with a template from the ServiceStackVS Visual Studio extension. If you are using Visual Studio Express, please see Creating your ServiceStack solution with Visual Studio and NuGet section in Appendix A, Getting Started, and continue from the second instruction in the How to do it… section.
How to do it…
Create a new application using a template from the ServiceStackVS Visual Studio extension. For this example, we will use the AngularJS template.
Install
Servicestack.OrmLite.Sqlite.Windows...