This commit is contained in:
2025-09-03 16:47:28 +02:00
parent cfabf3c9f5
commit 65b6f45753

View File

@ -3,7 +3,7 @@
<Spinner :loading="loading" />
<div v-html="output" />
<div v-if="!loading && status ==='stopped'">
<form name="loginForm" method="post" action="/login.php" @submit.prevent="submitForm" class="login-form" autocomplete="on">
<form name="loginForm" id="loginForm" method="post" action="/login.php" @submit.prevent="submitForm" class="login-form" autocomplete="on">
<input type="hidden" name="relocation" value="route=search/search&type=simple" />
<h2 class="title">Login</h2>
@ -94,7 +94,7 @@ async function checkStatus () {
if (interval.value) clearInterval(interval.value)
loading.value = false
if (username.value && password.value) {
document.loginForm.submit()
document.getElementById('loginForm').submit()
} else {
navigateTo(window.location.origin + '/', { external: true })
}