captcha icon indicating copy to clipboard operation
captcha copied to clipboard

Error 500 on reload captcha

Open Xim3ng opened this issue 3 years ago • 1 comments

I get an error 500 when I click the reload captcha and when I look the code in the controller I see this error on the reloadCaptcha function: image

Xim3ng avatar Apr 01 '22 07:04 Xim3ng

This is my solution. var element = document.getElementById("reload"); if (element) { element.addEventListener("click", reloadCaptcha); } function reloadCaptcha() { var APP_URL = {!! json_encode(url('/')) !!} $.ajax({ type: 'GET', url: APP_URL+'/reload-captcha', success: function(data) { $(".captcha span").html(data.captcha); } }); }

ChemaBautista avatar Dec 13 '22 19:12 ChemaBautista