debug auth
This commit is contained in:
@@ -16,7 +16,7 @@ const WithAuthMiddleware = ({ children }) => {
|
|||||||
text={
|
text={
|
||||||
<Typography sx={{ textAlign: "center" }}>
|
<Typography sx={{ textAlign: "center" }}>
|
||||||
{t(
|
{t(
|
||||||
"typography_your_access_to_this_page_has_expired_Please_login_again"
|
"Authorization.typography_your_access_to_this_page_has_expired_Please_login_again"
|
||||||
)}
|
)}
|
||||||
</Typography>
|
</Typography>
|
||||||
}
|
}
|
||||||
@@ -26,7 +26,7 @@ const WithAuthMiddleware = ({ children }) => {
|
|||||||
variant="contained"
|
variant="contained"
|
||||||
component={NextLinkComposed}
|
component={NextLinkComposed}
|
||||||
to={{
|
to={{
|
||||||
pathname: "/login",
|
pathname: "/login-expert",
|
||||||
query: { back_url: encodeURIComponent(router.asPath) },
|
query: { back_url: encodeURIComponent(router.asPath) },
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -37,14 +37,14 @@ const WithoutAuthMiddleware = ({ children }) => {
|
|||||||
<Stack alignItems="center" spacing={2}>
|
<Stack alignItems="center" spacing={2}>
|
||||||
<Typography sx={{ textAlign: "center" }}>
|
<Typography sx={{ textAlign: "center" }}>
|
||||||
{t(
|
{t(
|
||||||
"typography_your_login_is_valid_and_you_do_not_need_to_login_again"
|
"Authorization.typography_your_login_is_valid_and_you_do_not_need_to_login_again"
|
||||||
)}
|
)}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography>
|
<Typography>
|
||||||
{t("typography_redirect_to")}{" "}
|
{t("Authorization.typography_redirect_to")}{" "}
|
||||||
{backUrlDecodedPath
|
{backUrlDecodedPath
|
||||||
? t("typography_routing_previuos_page")
|
? t("Authorization.typography_routing_previuos_page")
|
||||||
: t("typography_routing_dashbaord_page")}
|
: t("Authorization.typography_routing_dashbaord_page")}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Stack>
|
</Stack>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user