pwr: add captcha daemon

This commit is contained in:
Harvey Tindall
2023-12-23 20:18:16 +00:00
parent 278588ca39
commit 49d8c6f8e4
2 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ form.onsubmit = (event: Event) => {
if (req.readyState == 4) {
removeLoader(submitSpan);
if (req.status == 400) {
if (req.response["error"] as string) { // FIXME: Show captcha error
if (req.response["error"] as string) {
const old = submitSpan.textContent;
submitSpan.textContent = window.messages[req.response["error"]];
submitSpan.classList.add("~critical");