diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-06-21 10:18:44 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-06-21 10:22:12 +0200 |
commit | 29449f85b688deb1f103f3f67993475a040b4d80 (patch) | |
tree | d559843031dd09b030b68cc3b5719e973ddc4296 /apps/provisioning_api/lib | |
parent | 05b3288fdd5c863a328b919b10cfe604695a4b45 (diff) | |
download | nextcloud-server-29449f85b688deb1f103f3f67993475a040b4d80.tar.gz nextcloud-server-29449f85b688deb1f103f3f67993475a040b4d80.zip |
uses "yes" and "no" for config switch over stringified numbers
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/provisioning_api/lib')
-rw-r--r-- | apps/provisioning_api/lib/Controller/UsersController.php | 4 |
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 28ab99a0ee0..252db66c35e 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) && $this->config->getAppValue('settings', 'newUser.generateUserID', '0') === '1') { + if(empty($userid) && $this->config->getAppValue('core', 'newUser.generateUserID', 'no') === 'yes') { $userid = $this->createNewUserId(); } @@ -293,7 +293,7 @@ class UsersController extends AUserData { $generatePasswordResetToken = true; } - if ($email === '' && $this->config->getAppValue('settings', 'newUser.requireEmail', '0') === '1') { + if ($email === '' && $this->config->getAppValue('core', 'newUser.requireEmail', 'no') === 'yes') { throw new OCSException('Required email address was not provided', 110); } |