summaryrefslogtreecommitdiffstats
path: root/lib/private/User
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #43461 from nextcloud/fix/get-rid-of-getloggerF. E Noel Nfebe2024-02-141-1/+2
|\ | | | | chore: Migrate away from OC::$server->getLogger
| * chore: Migrate away from OC::$server->getLoggerCôme Chilliet2024-02-131-1/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix: replace `Account name` by `Login`John Molakvoæ2024-02-131-6/+6
| | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | feat: rename users to account or personVincent Petry2024-02-132-8/+8
|/ | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* chore: Replace OC::$server->getL10N by OCP\Util::getL10N in lib and some appsCôme Chilliet2024-02-052-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Fix missing template parameter for IEventListenerCôme Chilliet2024-01-301-0/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(auth): Fix logging in with email, password and login name mismatchChristoph Wurst2024-01-191-13/+24
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix(session): Avoid two useless authtoken DB queries for every anonymous requestGit'Fellow2024-01-171-2/+5
| | | | | | Co-Authored-By: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Always catch OCP versions of authentication exceptionsCôme Chilliet2024-01-111-2/+2
| | | | | | And always throw OC versions for BC Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #41927 from nextcloud/perf/login-with-email-tokenJulius Härtl2023-12-051-2/+11
|\
| * perf: Use more performant way to obtain and check the email as a login name ↵Julius Härtl2023-11-301-2/+11
| | | | | | | | | | | | with token login Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | fix(dav): Make current ooo info time-dependentChristoph Wurst2023-12-051-0/+11
|/ | | | | | | | * 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>
* enh(userstatus): add OOO automation and remove calendar automationAnna Larch2023-11-281-19/+31
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* feat(dav): dispatch out-of-office started and ended eventsRichard Steinmetz2023-11-231-1/+6
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-235-23/+23
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Merge pull request #40114 from summersab/refactor/OC-Server-getAvatarManagerArthur Schiwon2023-11-221-1/+1
|\ | | | | Refactor `OC\Server::getAvatarManager`
| * Refactor `OC\Server::getAvatarManagerAndrew Summers2023-09-011-1/+1
| | | | | | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* | feat(dav): Enable OOO UI and expose enabled via OCPChristoph Wurst2023-11-151-0/+11
| | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge pull request #41302 from zero0cool0/masterAndy Scherzinger2023-11-101-1/+1
|\ \ | | | | | | Lower log level about invalid session token
| * | Lower log level about invalid session tokenPatrick Fischer2023-11-061-1/+1
| | |
* | | feat: Add out-of-office message APIChristoph Wurst2023-11-092-0/+174
|/ / | | | | | | | | | | | | [skipci] Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | fix(session): Log why session renewal failedChristoph Wurst2023-10-111-1/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #39756 from nextcloud/enh/add-disabled-users-endpointCôme Chilliet2023-10-101-0/+30
|\ \ | | | | | | Add endpoint for getting disabled user list
| * | Add endpoint for getting disabled user listCôme Chilliet2023-10-091-0/+30
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | fix: Log critical session renewal and logout pathsChristoph Wurst2023-10-091-5/+33
|/ / | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | fix(user): Log affected user of app token login name mismatchChristoph Wurst2023-10-061-0/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #39216 from shdehnavi/replace_substr_calls_in_lib_privateRobin Appelman2023-09-211-1/+1
|\ \ | |/ |/| Refactor "substr" calls in lib/private to improve code readability
| * Refactor "substr" calls to improve code readabilityHamid Dehnavi2023-07-071-1/+1
| | | | | | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* | Merge pull request #40079 from ↵Joas Schilling2023-08-281-4/+4
|\ \ | | | | | | | | | | | | nextcloud/techdebt/noid/user-IThrottler-interface-for-DI techdebt(DI): Use public IThrottler interface which exists since 25
| * | techdebt(DI): Use public IThrottler interface which exists since Nextcloud 25Joas Schilling2023-08-281-4/+4
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | fix(cache): Remove displayname cache entry on deleteJoas Schilling2023-08-281-0/+6
|/ / | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix!: Move getEventDispatcher usage to IEventDispatcherJoas Schilling2023-07-281-2/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix!: Remove symfony EventDispatcherInterface from UserJoas Schilling2023-07-272-28/+9
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix!: Remove User events which have a typed event replacementJoas Schilling2023-07-271-4/+0
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: Replace \OC::$server->query with \OCP\Server::get in /libChristoph Wurst2023-07-062-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #34443 from nextcloud/feat/add-enabled-user-backendCôme Chilliet2023-07-031-9/+31
|\ | | | | Add IProvideEnabledStateBackend interface
| * Fix since annotations and add boolean return type for setUserEnabledCôme Chilliet2023-06-201-3/+3
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix user tests, avoid setting enabled state to the same valueCôme Chilliet2023-05-231-3/+4
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Add user enabled state backend featureCôme Chilliet2023-05-231-9/+30
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #38261 from fsamapoor/replace_strpos_calls_in_lib_privateRobin Appelman2023-06-012-2/+2
|\ \ | | | | | | Refactors "strpos" calls in lib/private to improve code readability.
| * | Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-152-2/+2
| |/ | | | | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* / fix(dav): Fix avatar size in system address bookJoas Schilling2023-05-261-1/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(users): Store and load a user's managerChristoph Wurst2023-05-122-0/+33
| | | | | Co-Authored-By: hamza221 <hamzamahjoubi221@gmail.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix(user): Can change display nameChristopher Ng2023-05-041-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(dav): Abort requests with 429 instead of waitingJoas Schilling2023-05-031-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update version number in since and deprecated annotationsCôme Chilliet2023-04-271-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Make code clearer and bump @ deprecated annotationsCôme Chilliet2023-04-271-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Split new method in a new group backend interfaceCarl Schwan2023-04-272-5/+3
| | | | | | Better for backward compatibility, also move new interfaces to nc 26 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Optimize retrieving display name when searching for users in a groupCarl Schwan2023-04-272-20/+29
| | | | | | | | | This is recurrent scenario that we are searching for users and then for each users we fetch the displayName. This is inefficient, so instead try to do one query to fetch everything (e.g. Database backend) or use the already existing DisplayNameCache helper. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Use typed version of IConfig::getSystemValue as much as possibleCôme Chilliet2023-04-053-6/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>