Welcome Guest, Not a member yet? Register   Sign In
Tank Auth. How to remove Captcha (but completely remove it...)
#1

[eluser]chefnelone[/eluser]
Hello

Just this: How to remove Captcha. But completely remove it. I set it in the config/tank_auth.php

Code:
$config['login_max_attempts'] = 100000;

$config['captcha_registration'] = false; // BUT THIS ONLY AFFECT THE REGISTRATION, NOT THE LOGIN

What else do I need to do? I already spent hours in this..
please help.
#2

[eluser]Unknown[/eluser]
Starting on line 87 in the controller I see:

Code:
$data['show_captcha'] = FALSE;
            if ($this->tank_auth->is_max_login_attempts_exceeded($login)) {
                $data['show_captcha'] = TRUE;
                if ($data['use_recaptcha']) {
                    $data['recaptcha_html'] = $this->_create_recaptcha();
                } else {
                    $data['captcha_html'] = $this->_create_captcha();
                }
            }

While I haven't tested it, from reading it it looks like commenting out the if block (or deleting it) will cause a captcha never to display during login.
#3

[eluser]chefnelone[/eluser]
[quote author="ErikSean" date="1305323111"]Starting on line 87 in the controller I see:

Code:
$data['show_captcha'] = FALSE;
            if ($this->tank_auth->is_max_login_attempts_exceeded($login)) {
                $data['show_captcha'] = TRUE;
                if ($data['use_recaptcha']) {
                    $data['recaptcha_html'] = $this->_create_recaptcha();
                } else {
                    $data['captcha_html'] = $this->_create_captcha();
                }
            }

While I haven't tested it, from reading it it looks like commenting out the if block (or deleting it) will cause a captcha never to display during login.[/quote]
You are right, thanks.




Theme © iAndrew 2016 - Forum software by © MyBB