summaryrefslogtreecommitdiffstats
path: root/lib/public/User
Commit message (Collapse)AuthorAgeFilesLines
* chore: Adapt `@since` version number in OCP for backport to 28Côme Chilliet2024-05-271-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat: Add back searching in disabled user listCôme Chilliet2024-05-271-1/+2
| | | | | | | | When disabled users where moved to their own endpoint we overlooked search, so adding it back. The search is done case-insensitive in uid and display name. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #41949 from nextcloud/backport/stable28/40169Andy Scherzinger2023-12-061-1/+1
|\ | | | | [stable28] enh(settings): Load from disabled users endpoint
| * Invert parameter order in getDisabledUserList to be consistentCôme Chilliet2023-12-061-1/+1
| | | | | | | | | | | | | | | | This matches what was done in the calls and so fixes getting disabled user list when there are several backends returning disabled users. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> (cherry picked from commit 85e7887e0764a9347bbbb10812459d95ccdfa6d4)
* | fix(dav): Make current ooo info time-dependentChristoph Wurst2023-12-061-1/+18
|/ | | | | | | | * If there is an out of office absence info and it happens now -> return data * Else: return no data Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* [stable28] enh(userstatus): add OOO automation and remove calendar automationAnna Larch2023-11-281-0/+16
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* feat(dav): dispatch out-of-office started and ended eventsRichard Steinmetz2023-11-232-0/+102
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-236-11/+11
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* feat(dav): Enable OOO UI and expose enabled via OCPChristoph Wurst2023-11-151-0/+9
| | | | | | | | | | | Makes the feature opt-out now that we have meaningful integrations based on OOO data. Allows instances still to turn the feature off. For apps like Mail that build on top of this feature we need to know if the instance has the feature turned on or off. This is exposed as OCP API, too. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* feat: Add out-of-office message APIChristoph Wurst2023-11-095-0/+269
| | | | | | | [skipci] Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* fix!: Move getEventDispatcher usage to IEventDispatcherJoas Schilling2023-07-281-0/+50
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add method to list disabled users to IProvideEnabledStateBackendCôme Chilliet2023-06-291-0/+9
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix since annotations and add boolean return type for setUserEnabledCôme Chilliet2023-06-201-4/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add user enabled state backend featureCôme Chilliet2023-05-231-0/+47
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix typos in lib/public subdirectorySimon L2023-05-101-1/+1
| | | | | | | | | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/public` Signed-off-by: luz paz <luzpaz@github.com> Update lib/public/Accounts/IAccount.php Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: Simon L <szaimen@e.mail.de> Co-Authored-By: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* dispatch BeforeUserLoggedInEventMaxence Lange2023-03-011-7/+20
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* ci: migrate ocp since checker to psalmDaniel Kesselberg2023-01-241-0/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* composer run cs:fixCôme Chilliet2023-01-2024-24/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge branch 'master' into fix/clean-ldap-access-factory-usageCôme Chilliet2022-11-211-0/+39
|\ | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * Update lib/public/User/Backend/ICountMappedUsersBackend.phpCôme Chilliet2022-10-251-2/+2
| | | | | | | | Co-authored-by: Simon L. <szaimen@e.mail.de> Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * Add missing fileCôme Chilliet2022-10-241-0/+39
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Fix return type for countUsers methodCôme Chilliet2022-10-251-2/+1
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix creation of new user and display the correct error messageChristopher Ng2022-08-221-0/+3
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Cleanup avatar related codeCarl Schwan2022-06-221-8/+2
| | | | | | | | - Move event listener to new event handling - Add typing almost everywhere - Fix inconsistent interface parameter Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix psalm issues related to the user backendCarl Schwan2022-05-201-1/+1
| | | | | | | | | | | | | - Reflect the actual return value returned by the implementation in the the interface. E.g. IUser|bool -> IUser|false - Remove $hasLoggedIn parameter from private countUser implementation. Replace the two call with the equivalent countSeenUser - getBackend is nuallable, add this to the interface - Use backend interface to make psalm happy about call to undefined methods. Also helps with getting rid at some point of the old implementActions Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fetch status in heartbeat controller only onceCarl Schwan2022-04-071-11/+20
| | | | | | Store the user status inside the event instead of fetching it again Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* allow null password in UserLoggedInEventJulien Veyssier2021-10-131-3/+3
| | | | Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0429-58/+31
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Improve search results when only phonebook-matches can we autocompletedJoas Schilling2021-03-172-1/+44
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Compare and store the login name via the eventJoas Schilling2021-01-201-1/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Streamline user creation and deletion eventsMorris Jobke2020-11-231-65/+0
| | | | | | CreateUserEvent was the only one that didn't matched the naming scheme of BeforePASTTENSEEvent and PASTTENSEEvent. The event wasn't used at all so this just removes it again as there is BeforeUserCreatedEvent that is also available since 18. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Provide correct PHPDoc tags for public namespaceMorris Jobke2020-09-171-2/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* add event to allow apps to overwrite user quotaRobin Appelman2020-09-171-0/+64
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headers for Nextcloud 20 (again)Christoph Wurst2020-09-071-0/+1
| | | | | | | There are still lots of outdated headers, so time for another round of updates. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #21288 from lmamane/masterRoeland Jago Douma2020-08-281-1/+15
|\ | | | | Return correct loginname in credentials
| * Return correct loginname in credentials,Lionel Elie Mamane2020-08-201-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | even when token is invalid or has no password. Returning the uid as loginname is wrong, and leads to problems when these differ. E.g. the getapppassword API was creating app token with the uid as loginname. In a scenario with external authentication (such as LDAP), these tokens were then invalidated next time their underlying password was checked, and systematically ceased to function. Co-authored-by: kesselb <mail@danielkesselberg.de> for: switch to consistent camelCase Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu>
* | Update the license headers for Nextcloud 20Christoph Wurst2020-08-2411-8/+19
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use matching parameter names form interfaces and implementationsMorris Jobke2020-08-191-1/+1
| | | | | | Found by Psalm 3.14.1 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add PHP doc for eventsMorris Jobke2020-08-108-0/+16
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add user-status appGeorg Ehrke2020-07-311-0/+101
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Allow user backends to specify a custom logout urlRoeland Jago Douma2020-07-231-0/+43
| | | | | | * Allows SSO backends to do a global logout Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1013-14/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix multiline commentsChristoph Wurst2020-04-082-2/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fixes the return type of BeforeUserLoggedInEventArthur Schiwon2020-04-031-2/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 18Christoph Wurst2019-12-2011-26/+40
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add typed events for all user hooks and legacy eventsChristoph Wurst2019-12-1112-0/+805
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-0514-36/+66
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>