diff --git a/front/assets/img/captcha/.gitignore b/front/assets/img/captcha/.gitignore deleted file mode 100644 index e69de29..0000000 diff --git a/front/assets/img/captcha/loading.png b/front/assets/img/captcha/loading.png new file mode 100644 index 0000000..a8f2bde Binary files /dev/null and b/front/assets/img/captcha/loading.png differ diff --git a/front/assets/img/captcha/unavailable.png b/front/assets/img/captcha/unavailable.png new file mode 100644 index 0000000..38f5aa3 Binary files /dev/null and b/front/assets/img/captcha/unavailable.png differ diff --git a/front/assets/js/scripts.js b/front/assets/js/scripts.js index 6a7ad0f..bbc194c 100644 --- a/front/assets/js/scripts.js +++ b/front/assets/js/scripts.js @@ -151,7 +151,7 @@ window.addEventListener('load', _ => { $("#captchaImage").attr("src", "/assets/img/captcha/"+data.id+".png"); $("#captchaId").val(data.id); }).fail(_ => { - $("#captchaImage").attr("src", ""); + $("#captchaImage").attr("src", "/assets/img/captcha/unavailable.png"); $("#captchaId").val(); }); } diff --git a/front/index.html b/front/index.html index acccee5..d3f86f0 100644 --- a/front/index.html +++ b/front/index.html @@ -314,9 +314,9 @@
- captcha error + captcha error - +