We are using the authentication properties to lock the user who fails to login correctly for three times and we lock the user for three minutes, in which he is not able to login into the system.
Controller file : login.get.js
js file : login.js
Authentication property added in global.properties :
authentication.protection.periodSeconds=180
authentication.protection.limit=3