From b5f5b1c53c96d80e7ce623fc6208f9662fcfdc07 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 5 Dec 2024 17:32:49 +1300 Subject: [PATCH] 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);