forked from urvishpatelce/lxd-app
test
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
<Spinner :loading="loading" />
|
<Spinner :loading="loading" />
|
||||||
<div v-html="output" />
|
<div v-html="output" />
|
||||||
<div v-if="!loading && status ==='stopped'">
|
<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" />
|
<input type="hidden" name="relocation" value="route=search/search&type=simple" />
|
||||||
|
|
||||||
<h2 class="title">Login</h2>
|
<h2 class="title">Login</h2>
|
||||||
@ -94,7 +94,7 @@ async function checkStatus () {
|
|||||||
if (interval.value) clearInterval(interval.value)
|
if (interval.value) clearInterval(interval.value)
|
||||||
loading.value = false
|
loading.value = false
|
||||||
if (username.value && password.value) {
|
if (username.value && password.value) {
|
||||||
document.loginForm.submit()
|
document.getElementById('loginForm').submit()
|
||||||
} else {
|
} else {
|
||||||
navigateTo(window.location.origin + '/', { external: true })
|
navigateTo(window.location.origin + '/', { external: true })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user