feat: more authentication failchecks

This commit is contained in:
2026-06-18 00:35:32 +02:00 Unverified
parent 2b35123d48
commit e5c3dd34f9
4 changed files with 41 additions and 14 deletions
+3 -1
View File
@@ -3,6 +3,8 @@ import BIIcon from "~/components/BIIcon.vue";
const { getOpenDataReports } = usePublic()
const { user } = useAuth();
const stats = {
total_reports: 14523,
resolved_reports: 13890,
@@ -38,7 +40,7 @@ const getStatusBadge = (status: string) => {
e monitora l'intervento in totale trasparenza.
</p>
<div class="it-btn-container d-flex justify-content-center gap-3">
<NuxtLink class="btn btn-primary" to="/auth/login">
<NuxtLink v-if="isCitizen(user.value?.role)" class="btn btn-primary" to="/auth/login">
Fai una segnalazione
</NuxtLink>
<NuxtLink class="btn btn-outline-primary" to="/open-data">