浏览代码

move to portfolio if already authenticated

Daniel Bohry 9 月之前
父节点
当前提交
e22ea17ccd
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/routes/login/+page.svelte

+ 1 - 0
src/routes/login/+page.svelte

@@ -18,6 +18,7 @@
 			const storedAuth = localStorage.getItem('authentication');
 			if (storedAuth) {
 				authentication.set(JSON.parse(storedAuth));
+				goto("/portfolio");
 			}
 		} catch (error) {
 			console.error('Error parsing stored auth:', error);