"For the things we have to learn before we can do them, we learn by doing them." ~ Aristotle
We did not find an end-to-end solution/tutorial for login (using email & password) in Hapi.js apps, so we wrote it.
If anything is unclear in this (or any of our other repos), please tell us:
This repo is a showcase for how to use the hapi-login plugin for a simple (yet complete) web/app login process.
## Try it: https://hapi-login.herokuapp.com/
The best way to get started is to run this example locally.
git clone git@github.com:dwyl/hapi-login-example.git
npm install
npm start
That's it.
Now, hack customise it to your heart's content!
When you visit http://localhost:8000/ you will see a login form, you can login with any valid email address:
Make sure the email address is valid:
Your password needs to be more than 6 characters long:
We also use https://github.com/chriso/validator.js to mitigate Cross Site Scripting vulnerability:
If you would like to see this example expanded, please either create an issue with a specific request or