Disallow using local as username
This commit is contained in:
parent
813d1cd38a
commit
463588bb31
2
init.sh
2
init.sh
@ -83,7 +83,7 @@ if [[ $VAULT_STATUS -eq 200 ]]; then
|
|||||||
echo "$VAULT_DOMAIN - Login"
|
echo "$VAULT_DOMAIN - Login"
|
||||||
echo "Method: LDAP"
|
echo "Method: LDAP"
|
||||||
|
|
||||||
if [[ -z $USER || $USER == "root" ]]; then
|
if [[ -z $USER || $USER == "root" || $USER == "local" ]]; then
|
||||||
echo -n "Username: "
|
echo -n "Username: "
|
||||||
read USERNAME
|
read USERNAME
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user