diff --git a/htdocs/themes/bootstrap/js/stikked.js b/htdocs/themes/bootstrap/js/stikked.js index 8db956c4..edec093c 100644 --- a/htdocs/themes/bootstrap/js/stikked.js +++ b/htdocs/themes/bootstrap/js/stikked.js @@ -144,11 +144,13 @@ ST.crypto = function() { 'code': encrypted, 'lang': $('#lang').val(), 'expire': $('#expire').val(), + 'captcha': $('#captcha').val(), 'reply': $('input[name=reply]').val() }, function(redirect_url) { - if (redirect_url.indexOf('invalid') > -1) { - $('#create_encrypted').parent().html('

' + redirect_url + '#' + key + '

'); + if (redirect_url.indexOf('E_CAPTCHA') > -1) { + $('.container .message').remove(); + $('.container:eq(1)').prepend('
The captcha is incorrect.
'); } else { window.location.href = base_url + redirect_url + '#' + key; }