Commit graph

105 commits

Author SHA1 Message Date
Daniel Kesselberg
af6de04e9e
style: update codestyle for coding-standard 1.2.3
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2024-08-25 19:34:58 +02:00
John Molakvoæ
6fda0c15f0
fix: copyright header
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
2024-08-16 15:25:04 +02:00
FedericoHeichou
a41e2f01b7 feat: Add user:welcome command
Signed-off-by: FedericoHeichou <federicoheichou@gmail.com>
2024-08-16 10:11:29 +02:00
nooblag
5ec3a7fcef occ: Revert all changes to Info.php
Signed-off-by: Jore <contact@jore.cc>
2024-08-07 09:33:09 +02:00
Jore
96638fd6b2 occ: Remove timezone changes.
Signed-off-by: Jore <contact@jore.cc>
2024-08-07 09:33:09 +02:00
Jore
a0566f881d occ: Add locale setting timezone to timestamps.
Signed-off-by: Jore <contact@jore.cc>
2024-08-07 09:33:09 +02:00
Jore
e16e16c972 occ: Add check for never logged in for user:info.
Signed-off-by: Jore <contact@jore.cc>
2024-08-07 09:33:09 +02:00
Jore
bd81967fa1 occ: Improve timestamps for user:info.
Signed-off-by: Jore <contact@jore.cc>
2024-08-07 09:33:09 +02:00
Jore
3e69668c9e occ: Improve timestamps for user:lastseen.
Signed-off-by: Jore <contact@jore.cc>
2024-08-07 09:33:08 +02:00
Côme Chilliet
db16a32ac3 feat(occ): Add support for iterable in Base and use in in group:list and user:list
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-08-06 12:13:26 +02:00
Andy Scherzinger
5c49a54801
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-26 20:05:04 +02:00
yemkareems
4e409ab489
fix: add missing ClearGeneratedAvatarCacheCommand.php in autoload_static.php and declare strict_types for the new file as suggested 2024-04-18 17:57:49 +05:30
yemkareems
04b112c941
feat: wordings corrected as suggested
Signed-off-by: yemkareems <yemkareems@gmail.com>
2024-04-16 13:59:34 +05:30
yemkareems
5201056b7e
feat: license wordings, minor php warnings corrected
Signed-off-by: yemkareems <yemkareems@gmail.com>
2024-04-16 08:53:15 +05:30
yemkareems
703214fd9c
feat: command added to clear avatar cache manually
Signed-off-by: yemkareems <yemkareems@gmail.com>
2024-04-15 16:12:29 +05:30
Côme Chilliet
5385a30970
feat(occ): Add --disabled option to occ user:list
Allows to easily list disabled users from cli in a efficient way

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-04-09 15:47:40 +02:00
Joas Schilling
813406322b
fix: Use IUserManager::callForAllUsers() to save memory
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-03-14 08:40:22 +01:00
Jordan Brown
d1e3c0278d
feat(occ): Add --all option for occ user:lastseen
Signed-off-by: Jordan Brown <code@jore.cc>
2024-03-13 10:29:55 +01:00
Marcel Müller
e23e89f384 feat(occ): Add user:keys:test command
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
2024-02-27 22:43:08 +01:00
Anupam Kumar
ce24923f4c
add generate-password option and flow fixes
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
2024-02-24 04:56:52 +05:30
Herman van Rink
bf7e84fb37
Allow combining --email option with --password-from-env
Signed-off-by: Herman van Rink <rink@initfour.nl>
2024-02-24 04:56:52 +05:30
Anupam Kumar
a92c507cb6
new user password email option, improved on #29368
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
2024-02-24 04:56:52 +05:30
Philip Gatzka
b587ec39f4
Enable adding E-Mail addresses to new user accounts using the CLI
Signed-off-by: Philip Gatzka <philip.gatzka@mailbox.org>
2024-02-24 04:56:52 +05:30
John Molakvoæ
524ed97d62
fix: replace Account name by Login
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2024-02-13 21:08:10 +01:00
Vincent Petry
839ddaa354
feat: rename users to account or person
Replace translated text in most locations

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2024-02-13 21:06:30 +01:00
Joas Schilling
aa5f037af7
chore: apply changes from Nextcloud coding standards 1.1.1
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-23 10:36:13 +01:00
Lucas Azevedo
79bc6ba06c Merge branch 'master' into auth-token-commands 2023-08-28 12:25:01 -03:00
Anna
5805ccde1d
Merge pull request #38298 from nextcloud/enh/occ-sync-account-data
feat: Add occ user:user:sync-account-data for updating oc_accounts information from user backends
2023-08-28 15:11:55 +02:00
Lucas Azevedo
cc912c3b51 Format lastActivity and type for plain output
Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
2023-08-27 23:14:27 -03:00
Lucas Azevedo
9c66bf6dc3 Use table output for list command
Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
2023-08-25 11:20:34 -03:00
Lucas Azevedo
c93b1634d3
Fixes from static analysis
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
2023-08-25 10:41:46 -03:00
Lucas Azevedo
fe9b9c1955 Add last-used-before option
Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
2023-08-25 02:07:57 -03:00
Lucas Azevedo
5af683d2c4 Namespace user auth token commands
Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
2023-08-24 11:42:30 -03:00
Lucas Azevedo
ca101b2dbe Filter out sensitive fields in user:auth-tokens
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>
2023-08-24 11:20:35 -03:00
Lucas Azevedo
7d05d1f604 Add missing return types
Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
2023-08-24 00:11:59 -03:00
Lucas Azevedo
651044ce17 feat: Add user:delete-auth-token command
Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
2023-08-23 20:56:52 -03:00
Lucas Azevedo
eed32112c5 feat: Add user:auth-tokens command
Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
2023-08-23 20:56:17 -03:00
Faraz Samapoor
9dc4efc52a Moves single constructor parameters to new lines.
Based on:
https://github.com/nextcloud/server/pull/38764#discussion_r1227630895

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
2023-06-19 12:55:10 +02:00
Faraz Samapoor
99f117146d Uses PHP8's constructor property promotion in core/Command/User classes.
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
2023-06-19 12:55:10 +02:00
Julius Härtl
095b43f396
feat: Add occ user:sync-account-data for updating oc_accounts information 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>
2023-06-09 17:30:24 +02:00
Côme Chilliet
876c162df8
Use the searchDisplayName recommended method in user:list
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-04-27 15:25:13 +02:00
Robin Appelman
975becb22e
normalize userid in user:setting
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-01-12 17:33:03 +01:00
Carl Schwan
458c2fa297
Remove OCP\App and OCP\BackgroundJob
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>
2022-08-01 09:46:40 +02:00
Carl Schwan
b70c6a128f Update core to PHP 7.4 standard
- Typed properties
- Port to LoggerInterface

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-20 22:18:06 +02:00
Joas Schilling
cfd2e8cc20
Allow to autocomplete user and group ids in commands
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-08 11:54:44 +02:00
Christoph Wurst
515235163c
Allow app passwords without login password for occ user:add-app-password
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-03-23 18:47:33 +01:00
Joas Schilling
ab29a67a32
Allow creating app passwords without validating the user's password again
Aparently the idea behind the command was exactly to do this.

Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-03-14 13:30:59 +01:00
Joas Schilling
50ccf7e2cf
Validate the password before generating an apptoken
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-03-10 15:52:01 +01:00
Joas Schilling
f98044ddce
Trigger an event to log an activity when an administrator generates an app password
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-03-10 15:25:22 +01:00
Côme Chilliet
071ceff7e2
Fixes occ user:info when the user never logged in
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-01-27 16:33:24 +01:00