From 5086c134709ee63a18266f731bb931645b7c3860 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Fri, 12 Apr 2019 23:27:53 +0100 Subject: [PATCH] fix password x --- home.admin/config.scripts/blitz.setpassword.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/home.admin/config.scripts/blitz.setpassword.sh b/home.admin/config.scripts/blitz.setpassword.sh index 3025247..b76dffc 100644 --- a/home.admin/config.scripts/blitz.setpassword.sh +++ b/home.admin/config.scripts/blitz.setpassword.sh @@ -278,14 +278,14 @@ elif [ "${abcd}" = "x" ]; then # check if passwords match if [ "${password1}" != "${password2}" ]; then dialog --backtitle "RaspiBlitz - Setup" --msgbox "FAIL -> Passwords dont Match\nPlease try again ..." 6 52 - sudo /home/admin/config.scripts/blitz.setpassword.sh X "$2" "$3" + sudo /home/admin/config.scripts/blitz.setpassword.sh x "$2" "$3" exit 1 fi # password zero if [ ${#password1} -eq 0 ]; then dialog --backtitle "RaspiBlitz - Setup" --msgbox "FAIL -> Password cannot be empty\nPlease try again ..." 6 52 - sudo /home/admin/config.scripts/blitz.setpassword.sh X "$2" "$3" + sudo /home/admin/config.scripts/blitz.setpassword.sh x "$2" "$3" exit 1 fi @@ -293,14 +293,14 @@ elif [ "${abcd}" = "x" ]; 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 (spaces, special chars)\nPlease try again ..." 6 52 - sudo /home/admin/config.scripts/blitz.setpassword.sh X "$2" "$3" + sudo /home/admin/config.scripts/blitz.setpassword.sh x "$2" "$3" exit 1 fi # password longer than 8 if [ ${#password1} -lt 8 ]; then dialog --backtitle "RaspiBlitz - Setup" --msgbox "FAIL -> Password length under 8\nPlease try again ..." 6 52 - sudo /home/admin/config.scripts/blitz.setpassword.sh X "$2" "$3" + sudo /home/admin/config.scripts/blitz.setpassword.sh x "$2" "$3" exit 1 fi