Update login urls
This commit is contained in:
parent
494404c4c1
commit
13a5a03860
3 changed files with 7 additions and 15 deletions
|
|
@ -331,9 +331,9 @@ export const Sidebar: FC<SidebarProps> = ({
|
||||||
{open
|
{open
|
||||||
? username
|
? username
|
||||||
: username
|
: username
|
||||||
.split(" ")
|
.split(" ")
|
||||||
.map((name) => name.substring(0, 1))
|
.map((name) => name.substring(0, 1))
|
||||||
.join("")}
|
.join("")}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item>
|
<Grid item>
|
||||||
|
|
@ -485,14 +485,6 @@ export const Sidebar: FC<SidebarProps> = ({
|
||||||
selected={pathname.endsWith("/docs")}
|
selected={pathname.endsWith("/docs")}
|
||||||
open={open}
|
open={open}
|
||||||
/>
|
/>
|
||||||
<MenuItem
|
|
||||||
name="Reporting"
|
|
||||||
href="/reporting"
|
|
||||||
Icon={AssessmentIcon}
|
|
||||||
iconSize={20}
|
|
||||||
selected={pathname.endsWith("/reporting")}
|
|
||||||
open={open}
|
|
||||||
/>
|
|
||||||
{roles.includes("admin") && leafcutterEnabled && (
|
{roles.includes("admin") && leafcutterEnabled && (
|
||||||
<MenuItem
|
<MenuItem
|
||||||
name="Opensearch"
|
name="Opensearch"
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ export const ZammadLoginProvider: FC<PropsWithChildren> = ({ children }) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (response.status !== 200) {
|
if (response.status !== 200) {
|
||||||
window.location.href = "/zammad/auth/sso";
|
window.location.href = "/link/login";
|
||||||
} else {
|
} else {
|
||||||
const token = response.headers.get("CSRF-Token");
|
const token = response.headers.get("CSRF-Token");
|
||||||
update({ zammadCsrfToken: token });
|
update({ zammadCsrfToken: token });
|
||||||
|
|
|
||||||
|
|
@ -121,9 +121,9 @@ if (process.env.GOOGLE_CLIENT_ID && process.env.GOOGLE_CLIENT_SECRET) {
|
||||||
|
|
||||||
export const authOptions: NextAuthOptions = {
|
export const authOptions: NextAuthOptions = {
|
||||||
pages: {
|
pages: {
|
||||||
signIn: "/login",
|
signIn: "/link/login",
|
||||||
error: "/login",
|
error: "/link/login",
|
||||||
signOut: "/logout",
|
signOut: "/link/logout",
|
||||||
},
|
},
|
||||||
providers,
|
providers,
|
||||||
session: {
|
session: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue