mirror of
https://github.com/wg-easy/wg-easy.git
synced 2026-07-05 23:32:16 +00:00
parent
0c833f0af0
commit
27372a8a27
3 changed files with 5 additions and 6 deletions
|
|
@ -40,11 +40,9 @@ const authenticating = ref(false);
|
|||
const totp = ref<string>('');
|
||||
|
||||
const { error } = await useFetch('/api/auth/pending');
|
||||
watchEffect(() => {
|
||||
if (error.value) {
|
||||
navigateTo('/login');
|
||||
}
|
||||
});
|
||||
if (error.value) {
|
||||
await navigateTo('/login');
|
||||
}
|
||||
|
||||
const _submit = useSubmit(
|
||||
(data) =>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div>
|
||||
<div class="flex flex-col gap-5">
|
||||
<div
|
||||
v-if="authMethods && authMethods.oauthEnabled"
|
||||
class="flex flex-col gap-5"
|
||||
|
|
|
|||
|
|
@ -159,6 +159,7 @@
|
|||
v-for="(info, provider) in authMethods.providers"
|
||||
:key="provider"
|
||||
class="flex items-center gap-2 p-2"
|
||||
as="a"
|
||||
:href="`/api/auth/${provider}?link=true`"
|
||||
>
|
||||
<IconsBrandsProvider :provider="provider" class="h-4 w-4" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue