also testing for spaces in password

This commit is contained in:
rootzoll 2018-11-28 13:31:45 +01:00
parent 290621b245
commit f7505caa1c

View File

@ -49,7 +49,7 @@ Write them down & store them in a safe place.
shred $_temp
passwordValid=1
clearedResult=$(echo '${result}' | tr -dc '[:alnum:]-.')
clearedResult=$(echo '${result}' | tr -dc '[:alnum:]-.' | tr -d ' ')
#echo "(${clearedResult}) (${#clearedResult} )"
#echo "(${result}) (${#result})"
if [ ${#clearedResult} != ${#result} ]; then