Updates
This commit is contained in:
@@ -6,7 +6,7 @@ import parseCookies from "../../utils/backend/parseCookies";
|
||||
import { AuthenticatedUser } from "../../types";
|
||||
import getCsrfHeaderName from "../../actions/get-csrf-header-name";
|
||||
import grabHostNames from "../../utils/grab-host-names";
|
||||
import debugLog from "@/package-shared/utils/logging/debug-log";
|
||||
import debugLog from "../../utils/logging/debug-log";
|
||||
|
||||
const minuteInMilliseconds = 60000;
|
||||
const hourInMilliseconds = minuteInMilliseconds * 60;
|
||||
@@ -166,22 +166,6 @@ export default function userAuth({
|
||||
if (
|
||||
finalRequest.headers[finalCsrfHeaderName] !== userObject.csrf_k
|
||||
) {
|
||||
debugLog({
|
||||
log: finalCsrfHeaderName,
|
||||
addTime: true,
|
||||
label: "userAuth:finalCsrfHeaderName",
|
||||
});
|
||||
debugLog({
|
||||
log: finalRequest.headers[finalCsrfHeaderName],
|
||||
addTime: true,
|
||||
label: "userAuth:finalRequest.headers[finalCsrfHeaderName]",
|
||||
});
|
||||
debugLog({
|
||||
log: userObject,
|
||||
addTime: true,
|
||||
label: "userAuth:userObject",
|
||||
});
|
||||
|
||||
return {
|
||||
success: false,
|
||||
payload: null,
|
||||
|
||||
Reference in New Issue
Block a user