Phase 1 reliability/stabilisation: auth logging, logout client, loader+xml hardening
This commit is contained in:
@@ -6,6 +6,7 @@ import { connect } from "react-redux";
|
||||
import pLimit from "p-limit";
|
||||
|
||||
import { getIP } from "../../actions/core/logger";
|
||||
import { logInfo } from "../../actions/core/logger";
|
||||
import {
|
||||
getPersonalAccount,
|
||||
getPortalLogin
|
||||
@@ -184,6 +185,10 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
const thisSession = await getSession(ctx);
|
||||
|
||||
if (!thisSession) {
|
||||
logInfo("auth.guard.redirect", {
|
||||
route: "/myportal",
|
||||
reason: "missing_session"
|
||||
});
|
||||
return {
|
||||
redirect: { destination: "/auth/signin", permanent: false }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user