diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-04-10 12:08:10 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-04-16 15:18:33 +0200 |
commit | 6028d600385ab4420f6b6e3abf6432c193b1faa9 (patch) | |
tree | 5c4c87b953c76681021d62f1f81bb8f5b4d6c6a3 /apps/provisioning_api | |
parent | 056660bf7ce0e587be7276e640e424280ff66804 (diff) | |
download | nextcloud-server-6028d600385ab4420f6b6e3abf6432c193b1faa9.tar.gz nextcloud-server-6028d600385ab4420f6b6e3abf6432c193b1faa9.zip |
Add language support for user creation
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/provisioning_api')
-rw-r--r-- | apps/provisioning_api/lib/Controller/UsersController.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index 420c09dfecb..7bbbe554838 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -206,7 +206,8 @@ class UsersController extends AUserData { string $email = '', array $groups = [], array $subadmin = [], - string $quota = ''): DataResponse { + string $quota = '', + string $language = 'en'): DataResponse { $user = $this->userSession->getUser(); $isAdmin = $this->groupManager->isAdmin($user->getUID()); $subAdminManager = $this->groupManager->getSubAdmin(); @@ -279,6 +280,10 @@ class UsersController extends AUserData { $this->editUser($userid, 'quota', $quota); } + if ($language !== '') { + $this->editUser($userid, 'language', $language); + } + // Send new user mail only if a mail is set if ($email !== '') { $newUser->setEMailAddress($email); |