Skip to content

Commit

Permalink
vzpostavi prijavo
Browse files Browse the repository at this point in the history
  • Loading branch information
mytja committed Oct 26, 2024
1 parent 419d957 commit a7cb436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Login.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
fd.append("email", email);
fd.append("pass", password);
try {
let r = await fetch(`${constants.baseurl}/user/login`, {body: fd, method: "POST"})
let r = await fetch(`${constants.baseurl}/user/login`, {body: fd, method: "POST", credentials: "include"})
let response = await r.json();
if (response["success"] === true) {
localStorage.setItem("role", response["data"]["role"]);
Expand Down

0 comments on commit a7cb436

Please sign in to comment.