Book Image

ServiceStack 4 Cookbook

Book Image

ServiceStack 4 Cookbook

Overview of this book

Table of Contents (18 chapters)
ServiceStack 4 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

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…

  1. Create a new application using a template from the ServiceStackVS Visual Studio extension. For this example, we will use the AngularJS template.

  2. Install Servicestack.OrmLite.Sqlite.Windows...