Skip to content

Commit

Permalink
API Renameator classes valid
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Dec 2, 2024
1 parent 6c7dfdc commit 592fe2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Extension/AccountReset/SecurityExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 592fe2e

Please sign in to comment.