Redirecting to dashboard if logged in on the landing screen

This commit is contained in:
Mawoka
2022-08-11 16:01:22 +02:00
parent 749b1e6d28
commit f5968f3aa9
+4
View File
@@ -9,6 +9,10 @@
export async function load({ session }) {
if (session.authenticated) {
signedIn.set(true);
return {
status: 302,
redirect: '/dashboard'
};
}
return {};
}