Update login urls

This commit is contained in:
Darren Clarke 2025-03-24 11:48:40 +01:00
parent 494404c4c1
commit 13a5a03860
3 changed files with 7 additions and 15 deletions

View file

@ -331,9 +331,9 @@ export const Sidebar: FC<SidebarProps> = ({
{open
? username
: username
.split(" ")
.map((name) => name.substring(0, 1))
.join("")}
.split(" ")
.map((name) => name.substring(0, 1))
.join("")}
</Typography>
</Grid>
<Grid item>
@ -485,14 +485,6 @@ export const Sidebar: FC<SidebarProps> = ({
selected={pathname.endsWith("/docs")}
open={open}
/>
<MenuItem
name="Reporting"
href="/reporting"
Icon={AssessmentIcon}
iconSize={20}
selected={pathname.endsWith("/reporting")}
open={open}
/>
{roles.includes("admin") && leafcutterEnabled && (
<MenuItem
name="Opensearch"

View file

@ -19,7 +19,7 @@ export const ZammadLoginProvider: FC<PropsWithChildren> = ({ children }) => {
});
if (response.status !== 200) {
window.location.href = "/zammad/auth/sso";
window.location.href = "/link/login";
} else {
const token = response.headers.get("CSRF-Token");
update({ zammadCsrfToken: token });

View file

@ -121,9 +121,9 @@ if (process.env.GOOGLE_CLIENT_ID && process.env.GOOGLE_CLIENT_SECRET) {
export const authOptions: NextAuthOptions = {
pages: {
signIn: "/login",
error: "/login",
signOut: "/logout",
signIn: "/link/login",
error: "/link/login",
signOut: "/link/logout",
},
providers,
session: {