Merge pull request #10193 from overleaf/ii-check-password-for-reuse-remove-samplerate

Remove sampleRate from metrics.inc when checking password

GitOrigin-RevId: 830383208039e239bb15a1172fea2ff9fb97373f
This commit is contained in:
ilkin-overleaf 2022-10-27 17:23:37 +03:00 committed by Copybot
parent c94043e2fe
commit 09c330caff

View file

@ -96,7 +96,7 @@ function checkPasswordForReuseInBackground(password) {
isPasswordReused(password)
.then(isReused => {
Metrics.inc('password_re_use', 1, {
Metrics.inc('password_re_use', {
status: isReused ? 're-used' : 'unique',
})
})
@ -108,7 +108,7 @@ function checkPasswordForReuseInBackground(password) {
err = new Error(err.message)
logger.err({ err }, 'cannot check password for re-use')
Metrics.inc('password_re_use', 1, { status: 'failure' })
Metrics.inc('password_re_use', { status: 'failure' })
})
}