aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/User/Events
Commit message (Collapse)AuthorAgeFilesLines
* chore: Unify user related events to always provide a `getUid` methodchore/migrate-encryption-away-from-hooksFerdinand Thiessen2024-10-153-0/+21
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-195-5/+15
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Add descriptions for new events and fix copyright yearCôme Chilliet2024-09-103-6/+9
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(user_ldap): Introduce user id assigned typed events for LDAP usageCarl Schwan2024-09-103-0/+99
| | | | | | Based on work from https://github.com/nextcloud/server/pull/32019 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* chore: Add SPDX headerAndy Scherzinger2024-05-2421-415/+45
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-024-4/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@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: Add out-of-office message APIChristoph Wurst2023-11-093-0/+150
| | | | | | | [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>
* 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>
* composer run cs:fixCôme Chilliet2023-01-2014-14/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.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>
* 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-0415-30/+16
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Compare and store the login name via the eventJoas Schilling2021-01-201-1/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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>
* 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-249-7/+16
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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>
* 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-081-1/+0
| | | | 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-053-7/+14
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add typed create user eventsChristoph Wurst2019-12-032-0/+134
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make the post login event publicChristoph Wurst2019-11-201-0/+76
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>