GoogleRecaptcha
class GoogleRecaptcha implements CaptchaInterface
구글 reCAPTCHA 기능을 처리 함.
Properties
protected ReCaptcha | $captcha | ReCaptcha instance | |
protected Request | $request | Http Request instance | |
protected string | $siteKey | Api site key | |
protected string | $secret | Api secret key | |
protected FrontendHandler | $frontend | FrontendHandler instance | |
protected Response | $response | ReCaptcha response instnace | |
protected string | $input | Captcha input name |
Methods
__construct(string $siteKey, string $secret, Request $request, FrontendHandler $frontend)
Constructor
bool
verify()
Verify captcha
array
errors()
Message of fails
string
render()
For UI object display
string
getInputName()
Captcha input name
ReCaptcha
create()
Create captcha instance
mixed
available()
Determine if captcha is available
Details
at line 92
__construct(string $siteKey, string $secret, Request $request, FrontendHandler $frontend)
Constructor
at line 105
bool
verify()
Verify captcha
at line 121
array
errors()
Message of fails
at line 131
string
render()
For UI object display
at line 143
string
getInputName()
Captcha input name
at line 153
protected ReCaptcha
create()
Create captcha instance
at line 167
mixed
available()
Determine if captcha is available