diff --git a/src/Extension/AccountReset/SecurityExtension.php b/src/Extension/AccountReset/SecurityExtension.php index 3a3b882..4c1bf51 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\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);