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