Skip to content

Commit

Permalink
fix: incorrectly set cookie's expires value in login.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Promix953 authored Jan 2, 2025
1 parent c58c355 commit f0c9539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/view/assets/js/component/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ export default {
// Save session id
document.cookie = `session-id=${json.message.session}; Path=${
new URL(document.baseURI).pathname
}; Expires=${json.message.expires}`;
}; Expires=${new Date(json.message.expires * 1000).toUTCString()}`;
document.cookie = `token=${json.message.token}; Path=${
new URL(document.baseURI).pathname
}; Expires=${json.message.expires}`;
}; Expires=${new Date(json.message.expires * 1000).toUTCString()}`;

// Save account data
localStorage.setItem("shiori-token", json.message.token);
Expand Down

0 comments on commit f0c9539

Please sign in to comment.