Merge pull request #6349 from overleaf/jpa-password-strength-checking

[web] data collection for password strength using HaveIBeenPwned api

GitOrigin-RevId: 7e4d57a979c29027fb7ca5294f3935500a0b4cf3
This commit is contained in:
Jakob Ackermann
2022-01-20 09:03:07 +00:00
committed by Copybot
parent 220daff655
commit 1fc0b3e4aa
9 changed files with 424 additions and 22 deletions
+7
View File
@@ -216,6 +216,13 @@ module.exports = {
url: `http://${process.env.WEBPACK_HOST || 'localhost'}:3808`,
},
haveIBeenPwned: {
enabled: process.env.HAVE_I_BEEN_PWNED_ENABLED === 'true',
url:
process.env.HAVE_I_BEEN_PWNED_URL || 'https://api.pwnedpasswords.com',
timeout: parseInt(process.env.HAVE_I_BEEN_PWNED_TIMEOUT, 10) || 5 * 1000,
},
// For legacy reasons, we need to populate the below objects.
v1: {},
recurly: {},