Check if user input empty username

This commit is contained in:
2025-01-30 19:37:40 +09:00
parent b4d525926a
commit 8c46cfebe5
3 changed files with 15 additions and 1 deletions
+5
View File
@@ -176,7 +176,12 @@ install_site() {
fi
done
while true; do
read -p "Enter admin username: " ADMIN_USER
if validate_username "$ADMIN_USER"; then
break
fi
done
read -s -p "Enter password (press Enter for random password): " ADMIN_PASSWORD
echo