UtopiaSoftware Forums

Full Version: captcha issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

nitnb

hey guys, love the script.

i logged in fine upon install and did some updates, now today when i went to update, i had to go thru the captcha but nothing processed at all and i was left with a blank image, thereby making my login's unsuccessful.

any way to fix this with some code or even remove the captcha altogether? i have a low traffic blog that only i update.
nitnb Wrote:hey guys, love the script.

i logged in fine upon install and did some updates, now today when i went to update, i had to go thru the captcha but nothing processed at all and i was left with a blank image, thereby making my login's unsuccessful.

any way to fix this with some code or even remove the captcha altogether? i have a low traffic blog that only i update.
You should be able to remove the line that triggers the captcha to disable it:

Open login.php. Replace this line:
PHP Code:
$DB->query("UPDATE `unp_user` SET failedlogins='".($loginarray['failedlogins']+1)."' WHERE username='$username'"); 
With this:
PHP Code:
//$DB->query("UPDATE `unp_user` SET failedlogins='".($loginarray['failedlogins']+1)."' WHERE username='$username'"); 
This will cause the login.php to not increase the failed logins count. If you need to access an account that's already been flagged for logging in too many times, you can also change this:
PHP Code:
if ($loginarray['failedlogins'] > 4) { 
With something like this:
PHP Code:
if ($loginarray['failedlogins'] > 40) { 
Sorry for the delay, I hope you were able to work this out.
Reference URL's