[SECURITY] Do not require email when in development

This commit is contained in:
Diogo Peralta Cordeiro 2021-08-04 17:48:00 +01:00 committed by Hugo Sales
parent e8ef777fb2
commit b77e35ef09
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -134,7 +134,7 @@ class Security extends Controller
// @codeCoverageIgnoreEnd // @codeCoverageIgnoreEnd
// generate a signed url and email it to the user // generate a signed url and email it to the user
if ($_ENV['APP_ENV'] === 'dev' || Common::config('site', 'use_email')) { if ($_ENV['APP_ENV'] !== 'dev' && Common::config('site', 'use_email')) {
// @codeCoverageIgnoreStart // @codeCoverageIgnoreStart
Common::sendVerificationEmail(); Common::sendVerificationEmail();
// @codeCoverageIgnoreEnd // @codeCoverageIgnoreEnd