This example demostrates defence from Multiple login attemts using Fingerprint library.
First of all we need to create a database and start the server to test the solution. For this run:
cd server
npm i
npm run database
npm start
In other terminal tab let's start the front server:
cd fingerprint-task
npm i
npm start
Try to click Submit with any credentials. After 5 times, you will be locked for 5 minutes.
If you try to change visitorId, you will be locked FOREVER. =)
If you want to check successful login, then just use this: login: admin password: fingerprint
Login: 'hacker' is totally blocked in database. Login: 'silly' is blocked for first 5 minutes database.
For more information check: Documentation for the JavaScript agent