Browse Source

fix(Register): name of SID cookie was not respected on register

Kristian Vos 3 năm trước cách đây
mục cha
commit
ca52fb329e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      frontend/src/api/auth.js

+ 1 - 1
frontend/src/api/auth.js

@@ -34,7 +34,7 @@ export default {
 								if (cookie.domain !== "localhost")
 									domain = ` domain=${cookie.domain};`;
 
-								document.cookie = `SID=${
+								document.cookie = `${cookie.SIDname}=${
 									res.SID
 								}; expires=${date.toGMTString()}; ${domain}${secure}path=/`;