Skip to content

Commit

Permalink
fix: incorrectly set cookie's expires value in login.js (#1049)
Browse files Browse the repository at this point in the history
  • Loading branch information
Promix953 authored and fmartingr committed Jan 3, 2025
1 parent 45bd4d6 commit 8aacdda
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 8aacdda

Please sign in to comment.