From 738d92319e73608ff48e36e3462767f9183830ab Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 20 Nov 2024 22:11:47 +0000 Subject: [PATCH 1/3] Bump cross-spawn from 7.0.3 to 7.0.6 Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6. - [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md) - [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6) --- updated-dependencies: - dependency-name: cross-spawn dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 79cc512..c14eedd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2896,9 +2896,9 @@ create-jest@^29.7.0: prompts "^2.0.1" cross-spawn@^7.0.2, cross-spawn@^7.0.3: - version "7.0.3" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" - integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== + version "7.0.6" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f" + integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA== dependencies: path-key "^3.1.0" shebang-command "^2.0.0" From b5f5b1c53c96d80e7ce623fc6208f9662fcfdc07 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 5 Dec 2024 17:32:49 +1300 Subject: [PATCH 2/3] API Rename validator classes --- src/Extension/AccountReset/SecurityExtension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Extension/AccountReset/SecurityExtension.php b/src/Extension/AccountReset/SecurityExtension.php index 3a3b882..02daa89 100644 --- a/src/Extension/AccountReset/SecurityExtension.php +++ b/src/Extension/AccountReset/SecurityExtension.php @@ -12,7 +12,7 @@ use SilverStripe\Forms\Form; use SilverStripe\Forms\FormAction; use SilverStripe\Forms\PasswordField; -use SilverStripe\Forms\RequiredFields; +use SilverStripe\Forms\Validation\RequiredFieldsValidator; use SilverStripe\MFA\JSONResponse; use SilverStripe\MFA\RequestHandler\BaseHandlerTrait; use SilverStripe\ORM\FieldType\DBDatetime; @@ -123,7 +123,7 @@ public function ResetAccountForm(): Form FormAction::create('doResetAccount', 'Reset account'), ]); - $validation = RequiredFields::create(['NewPassword1', 'NewPassword2']); + $validation = RequiredFieldsValidator::create(['NewPassword1', 'NewPassword2']); $form = Form::create($this->owner, 'ResetAccountForm', $fields, $actions, $validation); From 77ccde0712d739889860ea3a12846e8f17e8e8f3 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Fri, 6 Dec 2024 12:14:46 +1300 Subject: [PATCH 3/3] DEP Update minimum composer versions --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 4b3780b..aa2560a 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,7 @@ "silverstripe/framework": "^6", "silverstripe/admin": "^3", "silverstripe/siteconfig": "^6", - "defuse/php-encryption": "^2.3", + "defuse/php-encryption": "^2.4", "silverstripe/login-forms": "^6" }, "require-dev": {