Skip to content

10) reCAPTCHA usage

REJack edited this page Dec 7, 2014 · 1 revision

to use reCAPTCHA with aauth

1. setup the application/config/aauth.php

1. turn recaptcha_active from false to true
2. register your website on https://www.google.com/recaptcha/admin
3. insert the reCAPTCHA siteKey and secret that you got from the registration 
4. (optional) set 'recaptcha_login_attempts' 

2. place the captcha field in layout

its simply you need only to place echo $this->aauth->generate_recaptcha_field(); in your layout

how 'recaptcha_login_attempts' works

(X = recaptcha_login_attempts) on the Xth login attempt appears the captcha field

css class from recaptcha field is 'g-recaptcha'

Aauth Version 2 has been released

Some functions has changed. Dont forget to scan the new features and functions from Wiki

Clone this wiki locally