mirror of
https://github.com/elyby/accounts.git
synced 2024-12-27 07:30:18 +05:30
0cf68a6360
Новый способ отключения проверки капчи для функциональных тестов
35 lines
805 B
PHP
35 lines
805 B
PHP
<?php
|
|
use api\components\ReCaptcha\Validator;
|
|
use GuzzleHttp\Client;
|
|
|
|
return [
|
|
'components' => [
|
|
'user' => [
|
|
'secret' => 'tests-secret-key',
|
|
],
|
|
'reCaptcha' => [
|
|
'public' => 'public-key',
|
|
'secret' => 'private-key',
|
|
],
|
|
],
|
|
'modules' => [
|
|
'authserver' => [
|
|
'host' => 'localhost',
|
|
],
|
|
],
|
|
'params' => [
|
|
'authserverHost' => 'authserver.ely.by',
|
|
],
|
|
'container' => [
|
|
'definitions' => [
|
|
Validator::class => function() {
|
|
return new class(new Client()) extends Validator {
|
|
protected function validateValue($value) {
|
|
return null;
|
|
}
|
|
};
|
|
},
|
|
],
|
|
],
|
|
];
|