diff --git a/adminforth/spa/src/views/LoginView.vue b/adminforth/spa/src/views/LoginView.vue
index 2be2743c0..2c498289c 100644
--- a/adminforth/spa/src/views/LoginView.vue
+++ b/adminforth/spa/src/views/LoginView.vue
@@ -8,7 +8,7 @@
}: {}"
>
-
+
@@ -112,6 +117,7 @@
:is="getCustomComponent(formatComponent(c))"
:meta="formatComponent(c).meta"
@update:disableLoginButton="setDisableLoginButton($event)"
+ @update:oauthRedirecting="oauthRedirecting = $event"
/>
@@ -132,8 +138,8 @@ import { useCoreStore } from '@/stores/core';
import { useUserStore } from '@/stores/user';
import { IconEyeSolid, IconEyeSlashSolid } from '@iconify-prerendered/vue-flowbite';
import { callAdminForthApi, loadFile } from '@/utils';
-import { useRouter } from 'vue-router';
-import { Button, Checkbox, Input } from '@/afcl';
+import { useRouter, useRoute } from 'vue-router';
+import { Button, Checkbox, Input, Spinner } from '@/afcl';
import ErrorMessage from '@/components/ErrorMessage.vue';
const passwordInput = ref
| null>(null);
@@ -143,6 +149,8 @@ const username = ref('');
const password = ref('');
const router = useRouter();
+const route = useRoute();
+const oauthRedirecting = ref('start_oauth' in route.query && route.query.start_oauth !== '');
const inProgress = ref(false);
const isSuccess = ref(false);
const coreStore = useCoreStore();