asdsd
This commit is contained in:
@@ -35,7 +35,7 @@ async function apiFetch(url, init = {}) {
|
|||||||
});
|
});
|
||||||
if (res.status === 401) {
|
if (res.status === 401) {
|
||||||
if (!disableAuthRedirect) {
|
if (!disableAuthRedirect) {
|
||||||
window.location.href = "/login.php";
|
//window.location.href = "/login.php";
|
||||||
}
|
}
|
||||||
throw new Error("unauthorized");
|
throw new Error("unauthorized");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user