Преглед изворни кода

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();