forked from mirrors/easyappointments
Do not display expected captcha phrase on failures.
This commit is contained in:
parent
99bfc1e3ab
commit
a2588dbe21
4 changed files with 4 additions and 5 deletions
|
@ -273,7 +273,7 @@ $config['cache_path'] = __DIR__ . '/../../storage/cache/';
|
||||||
| new release.
|
| new release.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
$config['cache_busting_token'] = '9sdfg987s8d7g';
|
$config['cache_busting_token'] = '9G7D4';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
@ -438,8 +438,7 @@ class Appointments extends CI_Controller {
|
||||||
$this->output
|
$this->output
|
||||||
->set_content_type('application/json')
|
->set_content_type('application/json')
|
||||||
->set_output(json_encode([
|
->set_output(json_encode([
|
||||||
'captcha_verification' => FALSE,
|
'captcha_verification' => FALSE
|
||||||
'expected_phrase' => $this->session->userdata('captcha_phrase')
|
|
||||||
]));
|
]));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -337,7 +337,7 @@ window.FrontendBook = window.FrontendBook || {};
|
||||||
FrontendBookApi.applyPreviousUnavailableDates(); // New jQuery UI version will replace the td elements.
|
FrontendBookApi.applyPreviousUnavailableDates(); // New jQuery UI version will replace the td elements.
|
||||||
}, 300); // There is no draw event unfortunately.
|
}, 300); // There is no draw event unfortunately.
|
||||||
})
|
})
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function validates the customer's data input. The user cannot continue
|
* This function validates the customer's data input. The user cannot continue
|
||||||
|
|
|
@ -163,7 +163,7 @@ window.FrontendBookApi = window.FrontendBookApi || {};
|
||||||
|
|
||||||
if (response.captcha_verification === false) {
|
if (response.captcha_verification === false) {
|
||||||
$('#captcha-hint')
|
$('#captcha-hint')
|
||||||
.text(EALang.captcha_is_wrong + '(' + response.expected_phrase + ')')
|
.text(EALang.captcha_is_wrong)
|
||||||
.fadeTo(400, 1);
|
.fadeTo(400, 1);
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
|
Loading…
Reference in a new issue