From 67b2f9b6edefb42d9cfce592e1ff44a0f35b14f5 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Mon, 14 Jan 2019 17:44:56 +0100 Subject: [PATCH] fix password A rules --- home.admin/config.scripts/blitz.setpassword.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home.admin/config.scripts/blitz.setpassword.sh b/home.admin/config.scripts/blitz.setpassword.sh index f30cb91..0557923 100644 --- a/home.admin/config.scripts/blitz.setpassword.sh +++ b/home.admin/config.scripts/blitz.setpassword.sh @@ -103,8 +103,8 @@ if [ "${abcd}" = "a" ]; then fi # check that password does not contain bad characters - clearedResult=$(echo "${result}" | tr -dc '[:alnum:]-.' | tr -d ' ') - if [ ${#clearedResult} != ${#result} ] || [ ${#clearedResult} -eq 0 ]; then + clearedResult=$(echo "${password1}" | tr -dc '[:alnum:]-.' | tr -d ' ') + if [ ${#clearedResult} != ${#password1} ] || [ ${#clearedResult} -eq 0 ]; then dialog --backtitle "RaspiBlitz - Setup" --msgbox "FAIL -> Contains bad characters\nPlease try again ..." 6 52 sudo /home/admin/config.scripts/blitz.setpassword.sh a exit 1