diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-26 11:22:20 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-26 11:22:20 +0100 |
commit | f3723434eeeafb5a8b01eef6353833b607dace05 (patch) | |
tree | 32b99d3ac6709436535609afb6a89ca6f57d0a49 /apps/provisioning_api/lib | |
parent | 70b19761aaef961efe90ef509fb0501afc6b538d (diff) | |
download | nextcloud-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.php | 5 |
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(); |