Nakiami / mellivora

Mellivora is a CTF engine written in PHP
GNU General Public License v3.0
440 stars 171 forks source link

Disable registration mail sending. Suggestion for solution #136

Closed janfer closed 4 years ago

janfer commented 4 years ago

I wanted to disable mail sending totally since we do not have access to Internet where we run CTF. This is my suggestion for a solution.

--- config.ing.php ----- Config::set('MELLIVORA_CONFIG_EMAIL_NO_MAIL', true);

---- email.inc.php ----- // MOD to skip sending registrations mail first statement in function send_mail() if (Config::get('MELLIVORA_CONFIG_EMAIL_NO_MAIL')){ return $receivers; }

Nakiami commented 4 years ago

Hi, feel free to create a pull request