fix(portal): add invitation links and correct customer login routing
All checks were successful
Build and Release FEDEO / verify (push) Successful in 1m7s
Build and Release FEDEO / build-and-release (push) Successful in 6m24s

This commit is contained in:
2026-10-13 18:13:41 +02:00
parent 070be08207
commit 5463106938
10 changed files with 302 additions and 29 deletions

View File

@@ -7,7 +7,6 @@ definePageMeta({
const auth = useAuthStore()
const toast = useToast()
const router = useRouter()
const state = reactive({
email: '',
@@ -22,7 +21,6 @@ const doLogin = async (event: FormSubmitEvent<typeof state>) => {
try {
await auth.login(event.data.email, event.data.password, event.data.rememberMe)
toast.add({title:"Einloggen erfolgreich"})
await router.push("/")
} catch (err: any) {
toast.add({title:"Zugangsdaten falsch. Bitte überprüfen Sie Ihre Eingaben",color:"error"})
} finally {

View File

@@ -27,8 +27,8 @@ const doChange = async (event: FormSubmitEvent<typeof state>) => {
})
toast.add({title:"Ändern erfolgreich"})
await auth.logout()
return navigateTo("/login")
await auth.fetchMe()
return navigateTo(auth.getLandingPath(), { replace: true })
} catch (err: any) {
toast.add({title:"Es gab ein Problem beim ändern",color:"error"})
} finally {