mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-06 18:12:14 +02:00
fix password A rules
This commit is contained in:
@@ -103,8 +103,8 @@ if [ "${abcd}" = "a" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# check that password does not contain bad characters
|
# check that password does not contain bad characters
|
||||||
clearedResult=$(echo "${result}" | tr -dc '[:alnum:]-.' | tr -d ' ')
|
clearedResult=$(echo "${password1}" | tr -dc '[:alnum:]-.' | tr -d ' ')
|
||||||
if [ ${#clearedResult} != ${#result} ] || [ ${#clearedResult} -eq 0 ]; then
|
if [ ${#clearedResult} != ${#password1} ] || [ ${#clearedResult} -eq 0 ]; then
|
||||||
dialog --backtitle "RaspiBlitz - Setup" --msgbox "FAIL -> Contains bad characters\nPlease try again ..." 6 52
|
dialog --backtitle "RaspiBlitz - Setup" --msgbox "FAIL -> Contains bad characters\nPlease try again ..." 6 52
|
||||||
sudo /home/admin/config.scripts/blitz.setpassword.sh a
|
sudo /home/admin/config.scripts/blitz.setpassword.sh a
|
||||||
exit 1
|
exit 1
|
||||||
|
Reference in New Issue
Block a user