Pwned Passwords Check
Problem this snippet solves: This snippet makes it possible to use Troy Hunt’s ‘Pwned Passwords’ API. By using this API one can check if the password being used was exposed in earlier data breaches....
Updated Jun 05, 2023
Version 2.0Mar 09, 2018
Hi Niels,
I'm having trouble testing this on v12.1.3, it seems that the value obtained by hibp-checker doesn't make it back to the iRule. The version of node supplied is v0.12.15.
The function call for breachCount.then() doesn't appear to return a value to ILX::call despite the Pwned API call retrieving data.
breachCount.then(function(result) {
console.log(result); // logs the value retrieved
return res.reply(result);
},
Any thoughts?