front
This commit is contained in:
@@ -12,7 +12,7 @@ async function UserLogin() {
|
||||
const p = document.getElementById("password").value;
|
||||
|
||||
try {
|
||||
const r = await fetch("/api/users/login", {
|
||||
const r = await fetch("/api/auth/login", {
|
||||
method: "POST",
|
||||
credentials: "include",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
@@ -35,7 +35,7 @@ async function UserLogin() {
|
||||
|
||||
async function UserLogout() {
|
||||
try {
|
||||
await fetch("/api/users/logout", { method: "POST", credentials: "include" });
|
||||
await fetch("/api/auth/logout", { method: "POST", credentials: "include" });
|
||||
accessToken = "";
|
||||
alert("logged out");
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user