Browse Source

move to portfolio if already authenticated

Daniel Bohry 9 tháng trước cách đây
mục cha
commit
e22ea17ccd
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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);