[web] avoid logging when password is too similar to email (#24914)

GitOrigin-RevId: 122e1790e4827aa26da712011e946ea025a08300
This commit is contained in:
Jakob Ackermann
2025-04-15 14:12:46 +01:00
committed by Copybot
parent 35902407b3
commit 457d61fa9a

View File

@@ -409,10 +409,6 @@ const AuthenticationManager = {
if (!_exceedsMaximumLengthRatio(password, MAX_SIMILARITY, emailPart)) {
const similarity = DiffHelper.stringSimilarity(password, emailPart)
if (similarity > MAX_SIMILARITY) {
logger.warn(
{ email, emailPart, similarity, maxSimilarity: MAX_SIMILARITY },
'Password too similar to email'
)
return new Error('password is too similar to email')
}
}