Skip to content

octobroid/oc-recaptcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recaptcha Plugin for OctoberCMS

It's a plugin for OctoberCMS for you that want to verify using google recaptcha in easy way.

Configuration

In the OctoberCMS backend go to Settings > Captcha Settings. You are required to enter a Site key and a Secret key there. Selecting a language is optional. Please follow the instructions on https://developers.google.com/recaptcha/ in order to obtain these keys. Enable Use captcha on login backend? if you want to use recaptcha on login backend.

Usage

Place the {% component 'reCaptcha' %} code inside the form element.

    <form data-request="onSubmit">
        <div>
            <input type = "email" name="email" />
        </div>
        <div>
            <input type = "text" name="password" />
        </div>
        <div>
            {% component 'reCaptcha'  %}
        </div>
        <div>
            <input type="submit" value="Submit" />
        </div>
    </form>

Verify recaptcha using Octobro\Recaptcha\Classes\RecaptchaAuthorizer.

    \Octobro\Recaptcha\Classes\RecaptchaAuthorizer::instance()->verify();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published