diff --git a/application/controllers/Booking.php b/application/controllers/Booking.php index 66c1d9ce..7f9d3d17 100755 --- a/application/controllers/Booking.php +++ b/application/controllers/Booking.php @@ -450,7 +450,7 @@ class Booking extends EA_Controller { $captcha_phrase = session('captcha_phrase'); // Validate the CAPTCHA string. - if ($require_captcha && $captcha_phrase !== $captcha) + if ($require_captcha && strtoupper($captcha_phrase) !== strtoupper($captcha)) { json_response([ 'captcha_verification' => FALSE diff --git a/application/controllers/Captcha.php b/application/controllers/Captcha.php index 3be087b7..617baf68 100644 --- a/application/controllers/Captcha.php +++ b/application/controllers/Captcha.php @@ -27,6 +27,10 @@ class Captcha extends EA_Controller { public function index() { $builder = new CaptchaBuilder; + $builder->setDistortion(false); + $builder->setMaxBehindLines(1); + $builder->setMaxFrontLines(1); + $builder->setBackgroundColor(255,255,255); $builder->build(); session(['captcha_phrase' => $builder->getPhrase()]); header('Content-type: image/jpeg'); diff --git a/assets/css/layouts/booking_layout.scss b/assets/css/layouts/booking_layout.scss index 846842eb..3e747db7 100644 --- a/assets/css/layouts/booking_layout.scss +++ b/assets/css/layouts/booking_layout.scss @@ -250,7 +250,6 @@ body { float: left; margin-bottom: 20px; border-radius: 3px; - box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4); } #book-appointment-wizard .captcha-text {