fix design, fix link

Closes #2650
This commit is contained in:
Bernd Storath 2026-06-09 10:23:44 +02:00
parent 0c833f0af0
commit 27372a8a27
3 changed files with 5 additions and 6 deletions

View file

@ -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) =>

View file

@ -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"

View file

@ -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" />