Do not display expected captcha phrase on failures.

This commit is contained in:
alext 2018-02-23 15:33:41 +01:00
parent 99bfc1e3ab
commit a2588dbe21
4 changed files with 4 additions and 5 deletions

View file

@ -273,7 +273,7 @@ $config['cache_path'] = __DIR__ . '/../../storage/cache/';
| new release.
|
*/
$config['cache_busting_token'] = '9sdfg987s8d7g';
$config['cache_busting_token'] = '9G7D4';
/*
|--------------------------------------------------------------------------

View file

@ -438,8 +438,7 @@ class Appointments extends CI_Controller {
$this->output
->set_content_type('application/json')
->set_output(json_encode([
'captcha_verification' => FALSE,
'expected_phrase' => $this->session->userdata('captcha_phrase')
'captcha_verification' => FALSE
]));
return;
}

View file

@ -337,7 +337,7 @@ window.FrontendBook = window.FrontendBook || {};
FrontendBookApi.applyPreviousUnavailableDates(); // New jQuery UI version will replace the td elements.
}, 300); // There is no draw event unfortunately.
})
};
}
/**
* This function validates the customer's data input. The user cannot continue

View file

@ -163,7 +163,7 @@ window.FrontendBookApi = window.FrontendBookApi || {};
if (response.captcha_verification === false) {
$('#captcha-hint')
.text(EALang.captcha_is_wrong + '(' + response.expected_phrase + ')')
.text(EALang.captcha_is_wrong)
.fadeTo(400, 1);
setTimeout(function () {