LiteRecaptchaService.php
52 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @copyright © Melograno Ventures. All rights reserved. |
| 5 | * @licence See LICENCE.md for license details. |
| 6 | */ |
| 7 | |
| 8 | namespace AmeliaBooking\Infrastructure\Services\Recaptcha; |
| 9 | |
| 10 | /** |
| 11 | * Class RecaptchaService |
| 12 | */ |
| 13 | class LiteRecaptchaService extends AbstractRecaptchaService |
| 14 | { |
| 15 | /** |
| 16 | * @param string $value |
| 17 | * |
| 18 | * @return boolean |
| 19 | */ |
| 20 | public function verify($value) |
| 21 | { |
| 22 | return true; |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Verify recaptcha with provided secret and token |
| 27 | * |
| 28 | * @param string $secret |
| 29 | * @param string $token |
| 30 | * |
| 31 | * @return array Array with 'success' (bool) and 'message' (string) |
| 32 | */ |
| 33 | public function verifyWithSecret($secret, $token) |
| 34 | { |
| 35 | return [ |
| 36 | 'success' => true, |
| 37 | 'message' => 'Validation successful (Lite version)' |
| 38 | ]; |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * @param string $value |
| 43 | * @param string $cabinetType |
| 44 | * |
| 45 | * @return boolean |
| 46 | */ |
| 47 | public function process($value, $cabinetType) |
| 48 | { |
| 49 | return true; |
| 50 | } |
| 51 | } |
| 52 |