From 0a58c911afa0cd350fdae6b90933a4eeab141865 Mon Sep 17 00:00:00 2001 From: Kientz Arnaud Date: Thu, 2 Jun 2022 12:21:22 +0200 Subject: [PATCH] Escape dollar in regexp `re.search(r"\$", password) is not None` will return `True` on each password string, which will block the setup process. See https://ask.linuxmuster.net/t/bei-lmn71-setup-there-is-no-admin-passwort/8911 --- lib/functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions.py b/lib/functions.py index dee1e5d..70411a8 100644 --- a/lib/functions.py +++ b/lib/functions.py @@ -961,7 +961,7 @@ def isValidPassword(password): # searching for lowercase lowercase_error = re.search(r"[a-z]", password) is None # no $ in pw - unwanted_error = re.search(r"$", password) is not None + unwanted_error = re.search(r"\$", password) is not None # searching for symbols if digit_error is True: digit_error = False