summaryrefslogtreecommitdiffstats
path: root/settings/Controller
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2019-06-21 10:18:44 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2019-06-21 10:22:12 +0200
commit29449f85b688deb1f103f3f67993475a040b4d80 (patch)
treed559843031dd09b030b68cc3b5719e973ddc4296 /settings/Controller
parent05b3288fdd5c863a328b919b10cfe604695a4b45 (diff)
downloadnextcloud-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 'settings/Controller')
-rw-r--r--settings/Controller/UsersController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/Controller/UsersController.php b/settings/Controller/UsersController.php
index 63d729b282c..93cc040de62 100644
--- a/settings/Controller/UsersController.php
+++ b/settings/Controller/UsersController.php
@@ -246,8 +246,8 @@ class UsersController extends Controller {
// Settings
$serverData['defaultQuota'] = $defaultQuota;
$serverData['canChangePassword'] = $canChangePassword;
- $serverData['newUserGenerateUserID'] = $this->config->getAppValue('settings', 'newUser.generateUserID', '0') === '1';
- $serverData['newUserRequireEmail'] = $this->config->getAppValue('settings', 'newUser.requireEmail', '0') === '1';
+ $serverData['newUserGenerateUserID'] = $this->config->getAppValue('core', 'newUser.generateUserID', 'no') === 'yes';
+ $serverData['newUserRequireEmail'] = $this->config->getAppValue('core', 'newUser.requireEmail', 'no') === 'yes';
return new TemplateResponse('settings', 'settings-vue', ['serverData' => $serverData]);
}