feat(web): show 'Back to home' button on auth when valid token

This commit is contained in:
Masahiko AMANO 2023-01-27 17:19:14 +03:00
parent deb00436f5
commit 0a76f7fd8e
2 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,7 @@
<link rel="stylesheet" href="/css/auth.css"> <link rel="stylesheet" href="/css/auth.css">
<script src="/js/jquery-3.6.0.min.js"></script> <script src="/js/jquery-3.6.0.min.js"></script>
<script src="/js/jquery.cookie.js"></script> <script src="/js/jquery.cookie.js"></script>
<script src="/js/token.js"></script>
</head> </head>
<body> <body>
<header> <header>

View File

@ -1,3 +1,5 @@
$(window).on("load", validate(() => $(".btn-secondary").css("display", "block"), () => {}));
$("#auth").on("submit", function submit(e) { $("#auth").on("submit", function submit(e) {
e.preventDefault(); e.preventDefault();
var input_password = $("#password"); var input_password = $("#password");