1.0.1 • Published 10 years ago
hapi-register-example v1.0.1
hapi-register-example
This example is a showcase for using the hapi-register plugin for a simple (yet complete) web/app registration process.

To run this example locally, simply:
1. Clone the repo:
git clone git@github.com:nelsonic/hapi-register-example.git2. Install Dependencies from NPM
npm install3. Run the Server
npm startThat's it.
Now, hack to heart's content!
When we submit the form without any of the required fields we see:


We also use https://github.com/chriso/validator.js to mitigate Cross Site Scripting vulnerability:
Avoids Cross Site Scripting:

Displays welcome message on successful registration:

1.0.1
10 years ago