feat: add safe redirects from login pages

This commit is contained in:
mrjvs
2026-08-15 15:21:24 +02:00
parent 7b665bdfe8
commit a8f217b652
7 changed files with 92 additions and 18 deletions

View File

@@ -3,7 +3,7 @@ import { Popover } from 'reka-ui/namespaced';
const { locales, setLocale } = useI18n();
const me = useMeStore();
const authStore = useAuthStore();
const authUtils = useAuthUtils();
const user = computed(() => me.user);
const openDropdown = ref<boolean | string>(false);
@@ -522,7 +522,7 @@ onMounted(() => {
</a>
<button
class="button logout"
@click="authStore.logout()"
@click="authUtils.logout()"
>
{{ $t("nav.accountWidget.logout") }}
</button>