Browse Source

fixed error messages

#146
rootzoll 6 years ago
parent
commit
290621b245
  1. 10
      home.admin/20initDialog.sh

10
home.admin/20initDialog.sh

@ -50,24 +50,22 @@ Write them down & store them in a safe place.
passwordValid=1
clearedResult=$(echo '${result}' | tr -dc '[:alnum:]-.')
echo "(${clearedResult}) (${#clearedResult} )"
echo "(${result}) (${#result})"
#echo "(${clearedResult}) (${#clearedResult} )"
#echo "(${result}) (${#result})"
if [ ${#clearedResult} != ${#result} ]; then
clear
echo "FAIL - Password contained not allowed chars"
echo "Press ENTER to continue .."
ready key
read key
passwordValid=0
fi
exit 1
# check input (check for more later)
if [ ${#result} -eq 0 ]; then
clear
echo "FAIL - Password cannot be empty"
echo "Press ENTER to continue .."
ready key
read key
passwordValid=0
fi

Loading…
Cancel
Save