aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-02-26 18:04:43 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-02-28 14:01:03 +0100
commitd47daefe387301c9df8afabd00d5e547429d8709 (patch)
tree6ab11f0bb3349496ef30308f5ac2b187d0beb7fa /apps/provisioning_api
parent0f08acfe3169e3ef0c332353324271bd86c2e525 (diff)
downloadnextcloud-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.php2
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);