summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-01-26 11:22:20 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-01-26 11:22:20 +0100
commitf3723434eeeafb5a8b01eef6353833b607dace05 (patch)
tree32b99d3ac6709436535609afb6a89ca6f57d0a49 /apps/provisioning_api/lib
parent70b19761aaef961efe90ef509fb0501afc6b538d (diff)
downloadnextcloud-server-f3723434eeeafb5a8b01eef6353833b607dace05.tar.gz
nextcloud-server-f3723434eeeafb5a8b01eef6353833b607dace05.zip
Don't expose language and password as editable
* Password might not always be editable - Also chaging that will invalide apptokens etc which will directly lock out your phone * Chaging the language also doesn't make that much sense to me currently Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/provisioning_api/lib')
-rw-r--r--apps/provisioning_api/lib/Controller/UsersController.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php
index 1c7522d4301..ca38a1d49c6 100644
--- a/apps/provisioning_api/lib/Controller/UsersController.php
+++ b/apps/provisioning_api/lib/Controller/UsersController.php
@@ -309,11 +309,6 @@ class UsersController extends OCSController {
$permittedFields[] = AccountManager::PROPERTY_EMAIL;
}
- $permittedFields[] = 'password';
- if ($this->config->getSystemValue('force_language', false) === false) {
- $permittedFields[] = 'language';
- }
-
if ($this->appManager->isEnabledForUser('federatedfilesharing')) {
$federatedFileSharing = new \OCA\FederatedFileSharing\AppInfo\Application();
$shareProvider = $federatedFileSharing->getFederatedShareProvider();