mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-24 05:46:39 +00:00
redirect to org login via query param
This commit is contained in:
@@ -91,10 +91,10 @@ export default function OrgPolicyResult({
|
||||
? async () => {
|
||||
try {
|
||||
await api.post("/auth/logout", undefined);
|
||||
router.push("/auth/login");
|
||||
router.push(`/auth/login?orgId=${orgId}`);
|
||||
} catch (error) {
|
||||
console.error("Error during logout:", error);
|
||||
router.push("/auth/login");
|
||||
router.push(`/auth/login?orgId=${orgId}`);
|
||||
}
|
||||
}
|
||||
: undefined,
|
||||
|
||||
Reference in New Issue
Block a user