This commit is contained in:
2025-09-03 16:35:53 +02:00
parent b96a1c0065
commit 4072377548
2 changed files with 4 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<div class="page-wrapper">
<Spinner :loading="loading" />
<div v-html="output" />
<div v-if="!loading && status ==='starting'">
<div v-if="!loading && status ==='stopped'">
<form name="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" />
@ -134,9 +134,10 @@ const submitForm = async () => {
},
throwHttpErrors: false
})
if (res?.status !== 'success') {
captchaError.value = res?.message || 'Login failed'
} else {
status.value = 'starting'
}
} catch (error) {
captchaError.value = error?.data?.message || 'Internal server error!'