프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$secret | string | The recaptcha secret key. | |
$sitekey | string | The recaptcha sitekey key. |
메소드 | 설명 | |
---|---|---|
__construct ( string $secret, string $sitekey ) | NoCaptcha. | |
display ( $attributes = [], $lang = null ) : string | Render HTML captcha. | |
getJsLink ( $lang = null ) : string | Get recaptcha js link. | |
verifyRequest ( |
Verify no-captcha response by Symfony Request. | |
verifyResponse ( string $response, string $clientIp = null ) : boolean | Verify no-captcha response. |
메소드 | 설명 | |
---|---|---|
buildAttributes ( array $attributes ) : string | Build HTML attributes. | |
sendRequestVerify ( array $query = [] ) : array | Send verify request. |
public __construct ( string $secret, string $sitekey ) | ||
$secret | string | |
$sitekey | string |
protected buildAttributes ( array $attributes ) : string | ||
$attributes | array | |
리턴 | string |
protected sendRequestVerify ( array $query = [] ) : array | ||
$query | array | |
리턴 | array |
public verifyRequest ( |
||
$request | ||
리턴 | boolean |