hapi-register-example

1.0.1 • Public • Published

hapi-register-example

Build Status codecov.io Dependency Status

This example is a showcase for using the hapi-register plugin for a simple (yet complete) web/app registration process.

register form

To run this example locally, simply:

1. Clone the repo:

git clone git@github.com:nelsonic/hapi-register-example.git

2. Install Dependencies from NPM

npm install

3. Run the Server

npm start

That's it.
Now, hack to heart's content!

When we submit the form without any of the required fields we see:

register-1of4

register-3of4

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

Avoids Cross Site Scripting: register-hack-1of2

Displays welcome message on successful registration: reg-success-1of2

Package Sidebar

Install

npm i hapi-register-example

Weekly Downloads

1

Version

1.0.1

License

GPL-2.0

Last publish

Collaborators

  • nelsonic