mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-13 06:09:47 +02:00
prevent empty password
This commit is contained in:
parent
b5d6fbc1e2
commit
94164615a2
@ -50,7 +50,7 @@ Write them down & store them in a safe place.
|
||||
passwordValid=1
|
||||
|
||||
clearedResult=$(echo "${result}" | tr -dc '[:alnum:]-.' | tr -d ' ')
|
||||
if [ ${#clearedResult} != ${#result} ]; then
|
||||
if [ ${#clearedResult} != ${#result} ] || [ ${#clearedResult} -eq 0]; then
|
||||
clear
|
||||
echo "FAIL - Password contained not allowed chars (see next screen)"
|
||||
echo "Press ENTER to continue .."
|
||||
|
Loading…
x
Reference in New Issue
Block a user