diff --git a/api/models/authentication/ForgotPasswordForm.php b/api/models/authentication/ForgotPasswordForm.php index 051decb..df923a2 100644 --- a/api/models/authentication/ForgotPasswordForm.php +++ b/api/models/authentication/ForgotPasswordForm.php @@ -1,6 +1,7 @@ E::LOGIN_REQUIRED], ['login', 'validateLogin'], ['token', 'required', 'when' => function(self $model) { diff --git a/tests/codeception/api/unit/models/authentication/ForgotPasswordFormTest.php b/tests/codeception/api/unit/models/authentication/ForgotPasswordFormTest.php index c97723f..24ec5e4 100644 --- a/tests/codeception/api/unit/models/authentication/ForgotPasswordFormTest.php +++ b/tests/codeception/api/unit/models/authentication/ForgotPasswordFormTest.php @@ -1,6 +1,7 @@ set(ReCaptchaValidator::class, new class extends ReCaptchaValidator { + public function validateValue($value) { + return null; + } + }); + } + public function _fixtures() { return [ 'accounts' => AccountFixture::class,