forked from urvishpatelce/lxd-app
test
This commit is contained in:
@ -90,7 +90,6 @@ class LoginController
|
|||||||
// ---- CHANGED: do NOT return fields/creds here ----
|
// ---- CHANGED: do NOT return fields/creds here ----
|
||||||
return $this->json($response, [
|
return $this->json($response, [
|
||||||
'status' => 'ready',
|
'status' => 'ready',
|
||||||
'ip' => $ip,
|
|
||||||
'name' => $name,
|
'name' => $name,
|
||||||
'message' => 'Container is ready',
|
'message' => 'Container is ready',
|
||||||
]);
|
]);
|
||||||
|
|||||||
@ -68,8 +68,6 @@ import Spinner from '@/components/Spinner.vue'
|
|||||||
import Captcha from '@/components/Captcha.vue'
|
import Captcha from '@/components/Captcha.vue'
|
||||||
|
|
||||||
const output = ref('')
|
const output = ref('')
|
||||||
const router = useRouter()
|
|
||||||
const route = useRoute()
|
|
||||||
const loading = ref(true)
|
const loading = ref(true)
|
||||||
const username = ref('')
|
const username = ref('')
|
||||||
const password = ref('')
|
const password = ref('')
|
||||||
@ -79,6 +77,7 @@ const captchaError = ref('')
|
|||||||
const allowAccess = ref(false)
|
const allowAccess = ref(false)
|
||||||
const interval = ref(null)
|
const interval = ref(null)
|
||||||
const status = ref('starting')
|
const status = ref('starting')
|
||||||
|
const errorMessage = ref('')
|
||||||
|
|
||||||
const POLL_MS = 5000
|
const POLL_MS = 5000
|
||||||
const ALLOWED_REDIRECTS = new Set(['/', '/login', '/signin'])
|
const ALLOWED_REDIRECTS = new Set(['/', '/login', '/signin'])
|
||||||
@ -103,6 +102,7 @@ async function checkStatus () {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
loading.value = false
|
loading.value = false
|
||||||
status.value = 'error'
|
status.value = 'error'
|
||||||
|
console.log(error)
|
||||||
errorMessage.value = error?.data?.message || 'Internal server error!'
|
errorMessage.value = error?.data?.message || 'Internal server error!'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user