mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
captcha js for bootstrap as well
This commit is contained in:
parent
0490766273
commit
09fb700923
@ -144,11 +144,13 @@ ST.crypto = function() {
|
|||||||
'code': encrypted,
|
'code': encrypted,
|
||||||
'lang': $('#lang').val(),
|
'lang': $('#lang').val(),
|
||||||
'expire': $('#expire').val(),
|
'expire': $('#expire').val(),
|
||||||
|
'captcha': $('#captcha').val(),
|
||||||
'reply': $('input[name=reply]').val()
|
'reply': $('input[name=reply]').val()
|
||||||
},
|
},
|
||||||
function(redirect_url) {
|
function(redirect_url) {
|
||||||
if (redirect_url.indexOf('invalid') > -1) {
|
if (redirect_url.indexOf('E_CAPTCHA') > -1) {
|
||||||
$('#create_encrypted').parent().html('<p>' + redirect_url + '#' + key + '</p>');
|
$('.container .message').remove();
|
||||||
|
$('.container:eq(1)').prepend('<div class="message error"><div class="container">The captcha is incorrect.</div></div>');
|
||||||
} else {
|
} else {
|
||||||
window.location.href = base_url + redirect_url + '#' + key;
|
window.location.href = base_url + redirect_url + '#' + key;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user