aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/User
Commit message (Collapse)AuthorAgeFilesLines
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-193-3/+3
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-257-14/+14
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix: copyright headerJohn Molakvoæ2024-08-161-20/+2
| | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
* feat: Add user:welcome commandFedericoHeichou2024-08-161-0/+104
| | | | Signed-off-by: FedericoHeichou <federicoheichou@gmail.com>
* occ: Revert all changes to Info.phpnooblag2024-08-071-10/+1
| | | | Signed-off-by: Jore <contact@jore.cc>
* occ: Remove timezone changes.Jore2024-08-072-7/+0
| | | | Signed-off-by: Jore <contact@jore.cc>
* occ: Add locale setting timezone to timestamps.Jore2024-08-072-0/+12
| | | | Signed-off-by: Jore <contact@jore.cc>
* occ: Add check for never logged in for user:info.Jore2024-08-071-1/+6
| | | | Signed-off-by: Jore <contact@jore.cc>
* occ: Improve timestamps for user:info.Jore2024-08-071-1/+1
| | | | Signed-off-by: Jore <contact@jore.cc>
* occ: Improve timestamps for user:lastseen.Jore2024-08-071-2/+2
| | | | Signed-off-by: Jore <contact@jore.cc>
* feat(occ): Add support for iterable in Base and use in in group:list and ↵Côme Chilliet2024-08-061-12/+8
| | | | | | user:list Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-2616-331/+47
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: add missing ClearGeneratedAvatarCacheCommand.php in autoload_static.php ↵yemkareems2024-04-181-0/+3
| | | | and declare strict_types for the new file as suggested
* feat: wordings corrected as suggestedyemkareems2024-04-161-2/+2
| | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* feat: license wordings, minor php warnings correctedyemkareems2024-04-161-6/+5
| | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* feat: command added to clear avatar cache manuallyyemkareems2024-04-151-0/+49
| | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* feat(occ): Add --disabled option to occ user:listCôme Chilliet2024-04-091-1/+10
| | | | | | Allows to easily list disabled users from cli in a efficient way Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Use IUserManager::callForAllUsers() to save memoryJoas Schilling2024-03-141-5/+26
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(occ): Add --all option for occ user:lastseenJordan Brown2024-03-131-18/+24
| | | | Signed-off-by: Jordan Brown <code@jore.cc>
* feat(occ): Add user:keys:test commandMarcel Müller2024-02-271-0/+100
| | | | Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
* add generate-password option and flow fixesAnupam Kumar2024-02-241-31/+27
| | | | Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
* Allow combining --email option with --password-from-envHerman van Rink2024-02-241-13/+18
| | | | Signed-off-by: Herman van Rink <rink@initfour.nl>
* new user password email option, improved on #29368Anupam Kumar2024-02-241-106/+45
| | | | Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
* Enable adding E-Mail addresses to new user accounts using the CLIPhilip Gatzka2024-02-241-5/+120
| | | | Signed-off-by: Philip Gatzka <philip.gatzka@mailbox.org>
* fix: replace `Account name` by `Login`John Molakvoæ2024-02-133-3/+3
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat: rename users to account or personVincent Petry2024-02-136-16/+16
| | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-232-2/+2
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Merge branch 'master' into auth-token-commandsLucas Azevedo2023-08-281-0/+105
|\
| * Merge pull request #38298 from nextcloud/enh/occ-sync-account-dataAnna2023-08-281-0/+105
| |\ | | | | | | feat: Add occ user:user:sync-account-data for updating oc_accounts information from user backends
| | * feat: Add occ user:sync-account-data for updating oc_accounts information ↵Julius Härtl2023-06-091-0/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from user backends This can be useful in cases where the state between user backend and oc_accounts has become inconsistent. Usually the account data is updated once the change on the user backend is detected. Potential leftovers from older bugs (https://github.com/nextcloud/user_saml/pull/582) might though never get updated. This could lead to the contacts menu never showing the correct display name. The contacts menu is read from the system address book, which is only updated from oc_accounts. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Format lastActivity and type for plain outputLucas Azevedo2023-08-271-1/+16
| | | | | | | | | | | | Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
* | | Use table output for list commandLucas Azevedo2023-08-251-4/+10
| | | | | | | | | | | | Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
* | | Fixes from static analysisLucas Azevedo2023-08-251-3/+3
| | | | | | | | | | | | Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
* | | Add last-used-before optionLucas Azevedo2023-08-251-4/+68
| | | | | | | | | | | | Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
* | | Namespace user auth token commandsLucas Azevedo2023-08-243-9/+10
| | | | | | | | | | | | Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
* | | Filter out sensitive fields in user:auth-tokensLucas Azevedo2023-08-241-1/+10
| | | | | | | | | | | | | | | | | | | | | PublicKeyToken::jsonSerialize() already explicitly lists allowed fields, we are adding a second guard here to be on the safe side. Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
* | | Add missing return typesLucas Azevedo2023-08-242-3/+3
| | | | | | | | | | | | Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
* | | feat: Add user:delete-auth-token commandLucas Azevedo2023-08-231-0/+56
| | | | | | | | | | | | Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
* | | feat: Add user:auth-tokens commandLucas Azevedo2023-08-231-0/+70
|/ / | | | | | | Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
* | Moves single constructor parameters to new lines.Faraz Samapoor2023-06-194-4/+12
| | | | | | | | | | | | | | Based on: https://github.com/nextcloud/server/pull/38764#discussion_r1227630895 Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* | Uses PHP8's constructor property promotion in core/Command/User classes.Faraz Samapoor2023-06-1911-71/+34
|/ | | | Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* Use the searchDisplayName recommended method in user:listCôme Chilliet2023-04-271-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* normalize userid in user:settingRobin Appelman2023-01-121-3/+8
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove OCP\App and OCP\BackgroundJobCarl Schwan2022-08-011-3/+6
| | | | | | | | | | Both deprecated since NC 23 IAppManager is the replacement for OCP\App unfortunately it can't be dependency injected in classes used by the installed otherwise the database connection is initialised too early Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update core to PHP 7.4 standardCarl Schwan2022-05-2010-70/+18
| | | | | | | - Typed properties - Port to LoggerInterface Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Allow to autocomplete user and group ids in commandsJoas Schilling2022-04-087-10/+129
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow app passwords without login password for occ user:add-app-passwordChristoph Wurst2022-03-231-10/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Allow creating app passwords without validating the user's password againJoas Schilling2022-03-141-4/+1
| | | | | | Aparently the idea behind the command was exactly to do this. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Validate the password before generating an apptokenJoas Schilling2022-03-101-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Trigger an event to log an activity when an administrator generates an app ↵Joas Schilling2022-03-101-6/+11
| | | | | | password Signed-off-by: Joas Schilling <coding@schilljs.com>