Просмотр исходного кода

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

GitOrigin-RevId: 122e1790e4827aa26da712011e946ea025a08300
Jakob Ackermann 1 год назад
Родитель
Сommit
457d61fa9a

+ 0 - 4
services/web/app/src/Features/Authentication/AuthenticationManager.js

@@ -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')
         }
       }