diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md index 15ad60a..e19e106 100644 --- a/docs/docs/CHANGELOG.md +++ b/docs/docs/CHANGELOG.md @@ -13,12 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add `COOKIE_SECURE` option to set the cookie [Secure flag](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Cookies#block_access_to_your_cookies) - Sets cookie defaults to use [SameSite: None](https://web.dev/articles/samesite-cookies-explained) - - Determine the `BIND_NETWORK`/`--bind-network` value from the bind address ([#677](https://github.com/TecharoHQ/anubis/issues/677)). - Implement localization system. Find locale files in lib/localization/locales/. - Implement a [development container](https://containers.dev/) manifest to make contributions easier. - Fix dynamic cookie domains functionality ([#731](https://github.com/TecharoHQ/anubis/pull/731)) - Add option for custom cookie prefix ([#732](https://github.com/TecharoHQ/anubis/pull/732)) +- Remove the "Success" interstitial after a proof of work challenge is concluded. - Add option for forcing a specific language ([#742](https://github.com/TecharoHQ/anubis/pull/742)) ## v1.20.0: Thancred Waters diff --git a/lib/challenge/metarefresh/metarefresh_templ.go b/lib/challenge/metarefresh/metarefresh_templ.go index 172395a..c677a59 100644 --- a/lib/challenge/metarefresh/metarefresh_templ.go +++ b/lib/challenge/metarefresh/metarefresh_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.898 +// templ: version: v0.3.906 package metarefresh //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/web/index_templ.go b/web/index_templ.go index ab9328b..0601ba2 100644 --- a/web/index_templ.go +++ b/web/index_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.898 +// templ: version: v0.3.906 package web //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/web/js/main.mjs b/web/js/main.mjs index 0b1e69b..9d0f192 100644 --- a/web/js/main.mjs +++ b/web/js/main.mjs @@ -212,11 +212,6 @@ const t = (key) => translations[`js_${key}`] || translations[key] || key; const t1 = Date.now(); console.log({ hash, nonce }); - title.innerHTML = t('success'); - status.innerHTML = `${t('done_took')} ${t1 - t0}ms, ${nonce} ${t('iterations')}`; - image.src = imageURL("happy", anubisVersion, basePrefix); - progress.style.display = "none"; - if (userReadDetails) { const container = document.getElementById("progress"); @@ -251,17 +246,15 @@ const t = (key) => translations[`js_${key}`] || translations[key] || key; container.onclick = onDetailsExpand; setTimeout(onDetailsExpand, 30000); } else { - setTimeout(() => { - const redir = window.location.href; - window.location.replace( - u(`${basePrefix}/.within.website/x/cmd/anubis/api/pass-challenge`, { - response: hash, - nonce, - redir, - elapsedTime: t1 - t0, - }), - ); - }, 250); + const redir = window.location.href; + window.location.replace( + u(`${basePrefix}/.within.website/x/cmd/anubis/api/pass-challenge`, { + response: hash, + nonce, + redir, + elapsedTime: t1 - t0, + }), + ); } } catch (err) { ohNoes({