summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'apps/provisioning_api/lib/Controller')
-rw-r--r--apps/provisioning_api/lib/Controller/UsersController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php
index dfc9d188b5c..28ab99a0ee0 100644
--- a/apps/provisioning_api/lib/Controller/UsersController.php
+++ b/apps/provisioning_api/lib/Controller/UsersController.php
@@ -237,7 +237,7 @@ class UsersController extends AUserData {
$isAdmin = $this->groupManager->isAdmin($user->getUID());
$subAdminManager = $this->groupManager->getSubAdmin();
- if(empty($userid) && (bool)$this->config->getAppValue('settings', 'newUser.generateUserID', false)) {
+ if(empty($userid) && $this->config->getAppValue('settings', 'newUser.generateUserID', '0') === '1') {
$userid = $this->createNewUserId();
}
@@ -293,7 +293,7 @@ class UsersController extends AUserData {
$generatePasswordResetToken = true;
}
- if ($email === '' && (bool)$this->config->getAppValue('settings', 'newUser.requireEmail', false)) {
+ if ($email === '' && $this->config->getAppValue('settings', 'newUser.requireEmail', '0') === '1') {
throw new OCSException('Required email address was not provided', 110);
}