don't allow numbers in username
This commit is contained in:
parent
adcab50d85
commit
c9d9ab16f6
|
|
@ -389,7 +389,7 @@ if [ ! -z "$EDITION" ]; then
|
|||
--inputbox "Enter the username you want:
|
||||
(usernames most be all lowercase)" 8 50 \
|
||||
3>&1 1>&2 2>&3 3>&-)
|
||||
if [[ "$USER" =~ [A-Z] ]] || [[ "$USER" == *['!'@#\$%^\&*()_+]* ]]; then
|
||||
if [[ "$USER" =~ [A-Z] ]] || [[ "$USER" =~ [0-9] ]] || [[ "$USER" == *['!'@#\$%^\&*()_+]* ]]; then
|
||||
clear
|
||||
msg "Configuration aborted! Username contained invalid characters."
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue