From 0a76f7fd8e3410bf0243974f4319aa5c53f616d4 Mon Sep 17 00:00:00 2001 From: Masahiko AMANO Date: Fri, 27 Jan 2023 17:19:14 +0300 Subject: [PATCH] feat(web): show 'Back to home' button on auth when valid token --- web/public/auth.html | 1 + web/public/js/auth.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/web/public/auth.html b/web/public/auth.html index df8a17e..9c3c6fc 100644 --- a/web/public/auth.html +++ b/web/public/auth.html @@ -26,6 +26,7 @@ +
diff --git a/web/public/js/auth.js b/web/public/js/auth.js index 8cf2968..0b75415 100644 --- a/web/public/js/auth.js +++ b/web/public/js/auth.js @@ -1,3 +1,5 @@ +$(window).on("load", validate(() => $(".btn-secondary").css("display", "block"), () => {})); + $("#auth").on("submit", function submit(e) { e.preventDefault(); var input_password = $("#password");