Преглед изворни кода

[minor] compair minimum score with zxcvbn feedback score (#3444)

version-14
Makarand Bauskar пре 8 година
committed by Nabin Hait
родитељ
комит
66c9dfa42c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      frappe/utils/password_strength.py

+ 1
- 1
frappe/utils/password_strength.py Прегледај датотеку

@@ -44,7 +44,7 @@ def get_feedback (score, sequence):
if len(sequence) == 0:
return default_feedback
# No feedback if score is good or great
if score > minimum_password_score:
if score >= minimum_password_score:
return dict({"warning": "","suggestions": []})
# Tie feedback to the longest match for longer sequences
longest_match = max(sequence, key=lambda x: len(x['token']))


Loading…
Откажи
Сачувај