[SECURITY] Do not require email when in development
This commit is contained in:
parent
e8ef777fb2
commit
b77e35ef09
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user