diff --git a/packages/mcp/www/register.cgi b/packages/mcp/www/register.cgi index 2567276..c94713d 100755 --- a/packages/mcp/www/register.cgi +++ b/packages/mcp/www/register.cgi @@ -22,8 +22,8 @@ Content-type: text/html

Team Registration

EOF -if [ -z "$hash" ]; then - echo "

Empty hash, cannot complete request

" +if [ -z "$hash" ] || [ -z "$team" ]; then + echo "

Empty field, cannot complete request

" elif ! grep -q $hash $CTF_BASE/state/teams/assigned.txt; then echo "

That hash has not been assigned.

" elif [ -f $CTF_BASE/state/teams/names/$hash ]; then