瀏覽代碼

Fix register auth after success

Daniel Bohry 1 年之前
父節點
當前提交
0a705c0a0d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/routes/register/+page.svelte

+ 1 - 1
src/routes/register/+page.svelte

@@ -36,7 +36,7 @@
             if (response.ok) {
                 const result = await response.json();
                 authentication.set(result);
-                localStorage.setItem('auth', JSON.stringify(result));
+                localStorage.setItem('authentication', JSON.stringify(result));
                 window.location.href = "/login";
             } else {
                 const error = await response.json();