diff --git a/api/src/Controllers/LoginController.php b/api/src/Controllers/LoginController.php index 2707ade..f055c86 100644 --- a/api/src/Controllers/LoginController.php +++ b/api/src/Controllers/LoginController.php @@ -90,7 +90,6 @@ class LoginController // ---- CHANGED: do NOT return fields/creds here ---- return $this->json($response, [ 'status' => 'ready', - 'ip' => $ip, 'name' => $name, 'message' => 'Container is ready', ]); diff --git a/app/pages/index.vue b/app/pages/index.vue index a42cf59..49ce670 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -68,8 +68,6 @@ import Spinner from '@/components/Spinner.vue' import Captcha from '@/components/Captcha.vue' const output = ref('') -const router = useRouter() -const route = useRoute() const loading = ref(true) const username = ref('') const password = ref('') @@ -79,6 +77,7 @@ const captchaError = ref('') const allowAccess = ref(false) const interval = ref(null) const status = ref('starting') +const errorMessage = ref('') const POLL_MS = 5000 const ALLOWED_REDIRECTS = new Set(['/', '/login', '/signin']) @@ -103,6 +102,7 @@ async function checkStatus () { } catch (error) { loading.value = false status.value = 'error' + console.log(error) errorMessage.value = error?.data?.message || 'Internal server error!' } }