summaryrefslogtreecommitdiffstats
path: root/core/Command
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into auth-token-commandsLucas Azevedo2023-08-282-1/+106
|\
| * 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>
| * | fix: make cancelOperation publicDaniel Kesselberg2023-08-271-1/+1
| | | | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | 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>
* | fix: Make bypass function public APIJoas Schilling2023-08-211-7/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | feat(OCC): Add a command to get the bruteforce state of an IPJoas Schilling2023-08-212-5/+94
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix(db)!: Remove private legacy event because we can not keep itJoas Schilling2023-07-243-27/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix(db): Move missing core indices to typed eventJoas Schilling2023-07-241-416/+0
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix: Add options to support all used features by coreJoas Schilling2023-07-241-1/+17
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix(db): Move missing core columns to typed eventJoas Schilling2023-07-241-36/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix(db): Move missing core primary keys to typed eventJoas Schilling2023-07-241-121/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | feat(dispatcher): Add typed event for "db:add-missing-primary-keys"Joas Schilling2023-07-241-7/+48
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | feat(dispatcher): Add typed event for "db:add-missing-columns"Joas Schilling2023-07-241-9/+43
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #39389 from nextcloud/enh/add-missing-indices-eventJulius Härtl2023-07-141-1/+30
|\ \
| * | feat: Add public event for missing indicesJulius Härtl2023-07-141-1/+30
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | fix(db): no hardcoded table prefix is expectedArthur Schiwon2023-07-131-2/+2
|/ / | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Update core/Command/TwoFactorAuth/Cleanup.phpFaraz Samapoor2023-06-241-1/+1
| | | | | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* | Update core/Command/TwoFactorAuth/Enable.phpFaraz Samapoor2023-06-241-1/+1
| | | | | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* | Update core/Command/TwoFactorAuth/Disable.phpFaraz Samapoor2023-06-241-1/+1
| | | | | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* | Update core/Command/TwoFactorAuth/State.phpFaraz Samapoor2023-06-241-1/+1
| | | | | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* | Update core/Command/TwoFactorAuth/Enforce.phpFaraz Samapoor2023-06-241-1/+3
| | | | | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* | Update core/Command/Check.phpFaraz Samapoor2023-06-241-1/+3
| | | | | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* | Adds constructor to the Based class.Faraz Samapoor2023-06-245-6/+27
| | | | | | | | | | | | | | Based on: https://github.com/nextcloud/server/pull/38775#discussion_r1227641788 Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* | Uses PHP8's constructor property promotion.Faraz Samapoor2023-06-248-45/+24
| | | | | | | | | | | | in core/Command and /TwoFactorAuth classes. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* | Merge pull request #38771 from ↵Louis2023-06-2210-83/+43
|\ \ | | | | | | | | | | | | fsamapoor/constructor_property_promotion_in_core_command_part7 Uses PHP8's constructor property promotion core/Command/Info, /Integrity, and /Preview
| * | Moves single constructor parameters to new lines.Faraz Samapoor2023-06-203-3/+9
| | | | | | | | | | | | | | | | | | | | | 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.Faraz Samapoor2023-06-2010-83/+37
| | | | | | | | | | | | | | | | | | in core/Command/Info, /Integrity, and /Preview classes. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* | | fix(systemtags): Add missing systemtags indexMarcel Klehr2023-06-211-0/+13
| | | | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* | | Merge pull request #38762 from ↵Louis2023-06-2010-91/+44
|\ \ \ | | | | | | | | | | | | | | | | fsamapoor/constructor_property_promotion_in_core_command_part1 Uses PHP8's constructor property promotion in core/Command/Encryption
| * | | Update core/Command/Encryption/DecryptAll.phpFaraz Samapoor2023-06-201-2/+2
| | | | | | | | | | | | | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
| * | | Update core/Command/Encryption/EncryptAll.phpFaraz Samapoor2023-06-201-1/+1
| | | | | | | | | | | | | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
| * | | Moves single constructor parameters to new lines.Faraz Samapoor2023-06-203-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on: https://github.com/nextcloud/server/pull/38764#discussion_r1227630895 Signed-off-by: Faraz Samapoor <fsa@adlas.at>
| * | | Fixes php-cs error.Faraz Samapoor2023-06-201-1/+0
| | | | | | | | | | | | | | | | Signed-off-by: Faraz Samapoor <fsa@adlas.at>
| * | | Uses PHP8's constructor property promotion in core/Command/Encryption classes.Faraz Samapoor2023-06-2010-87/+35
| | | | | | | | | | | | | | | | Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* | | | Merge pull request #38768 from ↵Louis2023-06-2015-58/+48
|\ \ \ \ | |/ / / |/| | | | | | | | | | | fsamapoor/constructor_property_promotion_in_core_command_part5 Uses PHP8's constructor property promotion in core/Command/Config and Group
| * | | Moves single constructor parameters to new lines.Faraz Samapoor2023-06-2012-12/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/Config and ↵Faraz Samapoor2023-06-2012-55/+21
| |/ / | | | | | | | | | | | | | | | core/Command/Group classes. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* | | Merge pull request #38774 from ↵Côme Chilliet2023-06-2010-42/+31
|\ \ \ | |/ / |/| | | | | | | | fsamapoor/constructor_property_promotion_in_core_command_part8 Uses PHP8's constructor property promotion in core/Command/Log, /Security, and /SystemTag
| * | Moves single constructor parameters to new lines.Faraz Samapoor2023-06-199-9/+27
| | | | | | | | | | | | | | | | | | | | | 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.Faraz Samapoor2023-06-1910-42/+13
| | | | | | | | | | | | | | | | | | in core/Command/Log, /Security, and /SystemTag classes. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* | | Merge pull request #38769 from ↵Louis2023-06-199-46/+33
|\ \ \ | |/ / |/| | | | | | | | fsamapoor/constructor_property_promotion_in_core_command_part6 Uses PHP8's constructor property promotion core/Command/App,/Background, and /Broadcast