debug auth

This commit is contained in:
Yasiu1376
2023-07-12 15:16:56 +03:30
parent a89df0ecb9
commit 9090da80d8
2 changed files with 6 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ const WithAuthMiddleware = ({ children }) => {
text={
<Typography sx={{ textAlign: "center" }}>
{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>
}
@@ -26,7 +26,7 @@ const WithAuthMiddleware = ({ children }) => {
variant="contained"
component={NextLinkComposed}
to={{
pathname: "/login",
pathname: "/login-expert",
query: { back_url: encodeURIComponent(router.asPath) },
}}
>

View File

@@ -37,14 +37,14 @@ const WithoutAuthMiddleware = ({ children }) => {
<Stack alignItems="center" spacing={2}>
<Typography sx={{ textAlign: "center" }}>
{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>
{t("typography_redirect_to")}{" "}
{t("Authorization.typography_redirect_to")}{" "}
{backUrlDecodedPath
? t("typography_routing_previuos_page")
: t("typography_routing_dashbaord_page")}
? t("Authorization.typography_routing_previuos_page")
: t("Authorization.typography_routing_dashbaord_page")}
</Typography>
</Stack>
}