diff --git a/cyberpanel.sh b/cyberpanel.sh index 14afc9e2d..95a97e04c 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -1555,7 +1555,7 @@ else elif [[ "${1}" == 'r' ]] || [[ $1 == 'random' ]] ; then ADMIN_PASS=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 16 ; echo '') else - if [ ${1} -lt 8 ] ; then + if [ ${#1} -lt 8 ] ; then echo -e "\nPassword lenth less than 8 digital, please choose a more complicated password.\n" exit fi