diff --git a/yoda_eus/password_complexity.py b/yoda_eus/password_complexity.py index db15905..2ab51b6 100644 --- a/yoda_eus/password_complexity.py +++ b/yoda_eus/password_complexity.py @@ -33,4 +33,7 @@ def check_password_complexity(password: str) -> List[str]: if not (any(c in string.punctuation for c in password)): errors.append("Password needs to contain at least one punctuation character ({})".format(string.punctuation)) + if "\\" in password: + errors.append("Password must not contain backslashes.") + return errors diff --git a/yoda_eus/templates/web/password-requirements.html b/yoda_eus/templates/web/password-requirements.html index aee37c9..96fdfb6 100644 --- a/yoda_eus/templates/web/password-requirements.html +++ b/yoda_eus/templates/web/password-requirements.html @@ -1,7 +1,7 @@

Your password must meet the following requirements: