This commit is contained in:
@@ -14,21 +14,23 @@ export function Home() {
|
||||
useEffect(() => {
|
||||
if (searchParams.get("sessionExpired")) {
|
||||
showNotification({
|
||||
title: t("session expired", {capfirst: true}),
|
||||
message: t("your session has expired please log in again", {capfirst: true}),
|
||||
title: t("session expired", { capfirst: true }),
|
||||
message: t("your session has expired please log in again", { capfirst: true }),
|
||||
color: "red",
|
||||
autoClose: 5000,
|
||||
});
|
||||
}
|
||||
if (searchParams.get("userNotAllowed")) {
|
||||
showNotification({
|
||||
title: t("user not allowed", {capfirst: true}),
|
||||
message: t("your keycloak user has no roles, please contact your administrator", {capfirst: true}),
|
||||
title: t("user not allowed", { capfirst: true }),
|
||||
message: t("your keycloak user has no roles, please contact your administrator", {
|
||||
capfirst: true,
|
||||
}),
|
||||
color: "red",
|
||||
autoClose: 5000,
|
||||
});
|
||||
}
|
||||
}, [searchParams])
|
||||
}, [searchParams]);
|
||||
|
||||
return (
|
||||
<Stack mt="lg">
|
||||
|
||||
Reference in New Issue
Block a user