Revert "riot: loosen username check as sometimes it's not a unix username"

This reverts commit bdb64ce1f2.
This commit is contained in:
xiongdian.me 2023-06-29 15:41:59 +08:00
parent bdb64ce1f2
commit fdc12393d9

View File

@ -14,7 +14,7 @@ check_port() {
# check if username valid # check if username valid
check_username() { check_username() {
( echo $1 | grep -qxE "^[-.a-z0-9_]*\$" ) || return 1 ( echo $1 | grep -qxE "^[a-z][-a-z0-9_]*\$" ) || return 1
return 0 return 0
} }