forked from GNUsocial/gnu-social
[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
|
||||
|
||||
// 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
|
||||
Common::sendVerificationEmail();
|
||||
// @codeCoverageIgnoreEnd
|
||||
|
Loading…
Reference in New Issue
Block a user