mirror of
https://github.com/ThunixdotNet/makeuser.git
synced 2026-11-04 11:45:39 +00:00
Check that username is not in the banned list
This commit is contained in:
1 parent
334f222e3d
commit
ba830c97ec
3 files changed
+3
No files matched your search
@@ -23,6 +23,7 @@ case $1 in
|
||||
usage; error_exit "unknown option $1" ;;
|
||||
*)
|
||||
[[ $# -ne 3 ]] && error_exit "not enough args"
|
||||
$(sudo grep -qiw $1 $BANNED) && error_exit "$1 is on the ban list!"
|
||||
|
||||
#adding new user
|
||||
makeuser_no_ansible $1 $2
|
||||
|
||||
@@ -22,6 +22,7 @@ case $1 in
|
||||
usage; error_exit "unknown option $1" ;;
|
||||
*)
|
||||
[[ $# -ne 3 ]] && error_exit "not enough args"
|
||||
$(sudo grep -qiw $1 $BANNED) && error_exit "$1 is on the ban list!"
|
||||
|
||||
#adding new user
|
||||
makeuser_no_ansible $1 $2
|
||||
|
||||
@@ -11,3 +11,4 @@ export LIST_NAME="[email protected]"
|
||||
export EMAIL_TEMPLATE="include/email.tmpl"
|
||||
export TILDE_JSON="/var/www/thunix.cf/tilde.json"
|
||||
export YAML_FILE="$1.yml"
|
||||
export BANNED="/root/users.banned"
|
||||
Reference in new issue
Block a user