Fixed some Redirects for Mobile

Fixed other Login stuff on mobile
This commit is contained in:
2025-09-25 17:19:46 +02:00
parent 7f2a6ba438
commit 62c403307f
3 changed files with 27 additions and 6 deletions

View File

@@ -14,7 +14,11 @@ const doLogin = async (data:any) => {
await auth.login(data.email, data.password)
// Weiterleiten nach erfolgreichem Login
toast.add({title:"Einloggen erfolgreich"})
return navigateTo("/")
if(useCapacitor().getIsNative()) {
return navigateTo("/mobile")
} else {
return navigateTo("/")
}
} catch (err: any) {
toast.add({title:"Zugangsdaten falsch. Bitte überprüfen Sie Ihre Eingaben",color:"rose"})
}