aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib/Controller/UsersController.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(CI): Satisfy psalm by removing a now obsolete type checkJoas Schilling2023-05-311-3/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(users): Store and load a user's managerChristoph Wurst2023-05-121-2/+18
| | | | | Co-Authored-By: hamza221 <hamzamahjoubi221@gmail.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix(provisioning_api): Don't allow to configure the same additional email ↵Joas Schilling2023-04-261-4/+4
| | | | | | multiple times Signed-off-by: Joas Schilling <coding@schilljs.com>
* Improve handling of profile fieldsChristopher Ng2023-03-301-0/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Merge pull request #36665 from nextcloud/fix/36539Julien Veyssier2023-03-221-4/+1
|\ | | | | Always set displayname and display-name for user data
| * Always set displayname and display-name for user datajld31032023-02-101-4/+1
| | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* | fix: Recalculate storage statistics on updating the quotaJulius Härtl2023-03-061-3/+2
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add a const for the max user password lengthJoas Schilling2023-01-041-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Rename mastodon to fediverseCarl Schwan2022-11-221-6/+6
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add mastodon personal info fieldCarl Schwan2022-11-211-0/+6
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix password length limitationJoas Schilling2022-10-101-0/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix translation of user exists error server-sideChristopher Ng2022-09-151-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix typos in apps/ subdirectoryluz paz2022-09-051-2/+2
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Fix creation of new user and display the correct error messageChristopher Ng2022-08-221-3/+12
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Do not save invalid display name to the databaseChristopher Ng2022-06-281-1/+3
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix exception handling when profile data is too longJoas Schilling2022-06-091-1/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Profile backendChristopher Ng2021-10-191-7/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Add new account propertiesChristopher Ng2021-10-191-58/+133
| | | | | | | | | | | | | | - New properties - Organisation - Role - Headline - Biography - Profile Enabled property - Fix errors with building default account properties - Fix L10N factory method `getLanguage` not public error - Update tests Signed-off-by: Christopher Ng <chrng8@gmail.com>
* also allow admins to set the primary emailArthur Schiwon2021-09-091-0/+1
| | | | | | - there will be times when it is necessary to reset this value for sure Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* use specific email getter where necessaryArthur Schiwon2021-09-091-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* enable the user to set a primary (notification) email address (backend)Arthur Schiwon2021-09-091-22/+44
| | | | | | | - specific getters and setters on IUser and implementation - new notify_email field in provisioning API Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* implement verification for additional mailsArthur Schiwon2021-09-091-4/+10
| | | | | | | | | | | | - mails added by (sub)admins are automatically verified - provisioning_api controller as verification endpoint - IAccountProperty gets a locallyVerified property - IPropertyCollection gets a method to fetch an IAccountProperty by value - an remove equivalent was already present - AccountManager always initiates mail verification on update if necessary - add core success template for arbitrary title and message Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* refs #21045 add app config to disable unlimited quota and to set max quotaJulien Veyssier2021-07-291-0/+11
| | | | | | | | | avoid unlimited quota as default_quota fallback value if unlimited quota is not allowed avoid getting/setting/displaying unlimited default quota if not allowed implement tests for unlimited quota restrictions Signed-off-by: Julien Veyssier <eneiluj@posteo.net> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Migrate HintException to OCPGary Kim2021-06-301-3/+3
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* cleanupArthur Schiwon2021-06-301-6/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix small issues in UsersController handlingArthur Schiwon2021-06-301-2/+6
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust access permissions of new controller methodArthur Schiwon2021-06-301-1/+5
| | | | | | - fixes wrong veriable usage also Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* create a property on editUser when it was not set beforeArthur Schiwon2021-06-301-10/+14
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* prov api to be able to edit multivalue propertiesArthur Schiwon2021-06-301-0/+98
| | | | | | | - adding as usual - deleting and scope setting via additional endpoint Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* prov api reports multiple mail as editable fieldArthur Schiwon2021-06-301-0/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix the get editable fields endpoint without a user idJoas Schilling2021-05-271-1/+18
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #26679 from ↵blizzz2021-05-131-12/+20
|\ | | | | | | | | nextcloud/bugfix/noid/fix-unauthorized-ocs-status-in-provisioning Fix unauthorized OCS status in provisioning
| * Fix unauthorized OCS status in provisioningJoas Schilling2021-05-121-12/+20
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | allow to set valid scopes only in AccountPropertyArthur Schiwon2021-05-121-1/+1
| | | | | | | | | | | | the auto-fallback to v2-local is removed as well to react on wrong input Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | provAPI to use only public API of IAccountManagerArthur Schiwon2021-05-081-11/+12
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Also check implementsAction methodJoas Schilling2021-04-271-3/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only return display name as editable when the user backend allows itJoas Schilling2021-04-271-6/+36
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Also check the default phone region when the number has no country codeJoas Schilling2021-03-311-0/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Expose avatarScope through provisioning APIVincent Petry2021-03-261-0/+3
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* OCS allow reading and writing account property scopesVincent Petry2021-03-261-2/+32
| | | | | | | Extends the provisioning API to allow a user to get and set their own account property scopes. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Make extra user profile fields always editableVincent Petry2021-03-261-23/+8
| | | | | | | | The fields for phone number, address, website and twitter are now editable regardless whether federated sharing and the lookup server are enabled or not. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Only clear known users when we had at least one phonebook entryJoas Schilling2021-03-121-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Rename some parameters and methods to make the API more clearJoas Schilling2021-03-101-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a service to find out if a user knows another userJoas Schilling2021-03-101-23/+14
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Delete matches when a user changes their phone numberJoas Schilling2021-03-101-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Store when a user knows another user based on phone numberJoas Schilling2021-03-101-0/+22
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fixed error after merge in UsersControllerRoeland Jago Douma2021-03-051-5/+6
| | | | | | | This was moved to the LoggerInterface so the recent merge of #25589 broke master. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #25589 from nextcloud/provisioning-api-invalid-argumentRoeland Jago Douma2021-03-051-0/+7
|\ | | | | forward invalid argument message to frontend when creating a user fails
| * forward invalid argument message to frontend when creating a user failsRobin Appelman2021-02-111-0/+7
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>