diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-02-26 18:04:43 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-02-28 14:01:03 +0100 |
commit | d47daefe387301c9df8afabd00d5e547429d8709 (patch) | |
tree | 6ab11f0bb3349496ef30308f5ac2b187d0beb7fa /apps/provisioning_api | |
parent | 0f08acfe3169e3ef0c332353324271bd86c2e525 (diff) | |
download | nextcloud-server-d47daefe387301c9df8afabd00d5e547429d8709.tar.gz nextcloud-server-d47daefe387301c9df8afabd00d5e547429d8709.zip |
Revive the "send email to new users" toggle for the user form
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/provisioning_api')
-rw-r--r-- | apps/provisioning_api/lib/Controller/UsersController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index 7f239269262..ee939f587ba 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -335,7 +335,7 @@ class UsersController extends AUserData { } // Send new user mail only if a mail is set - if ($email !== '') { + if ($email !== '' && $this->config->getAppValue('core', 'newUser.sendEmail', 'yes') === 'yes') { $newUser->setEMailAddress($email); try { $emailTemplate = $this->newUserMailHelper->generateTemplate($newUser, $generatePasswordResetToken); |