mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 08:14:06 +00:00
feat(infisical-pg): auth injection completed and validation in password router
This commit is contained in:
@@ -22,8 +22,8 @@ export const AdminDashboardPage = () => {
|
||||
useEffect(() => {
|
||||
if (isNotAllowed && !isUserLoading) {
|
||||
if (orgs?.length) {
|
||||
localStorage.setItem("orgData.id", orgs?.[0]?._id);
|
||||
router.push(`/org/${orgs?.[0]?._id}/overview`);
|
||||
localStorage.setItem("orgData.id", orgs?.[0]?.id);
|
||||
router.push(`/org/${orgs?.[0]?.id}/overview`);
|
||||
}
|
||||
}
|
||||
}, [isNotAllowed, isUserLoading]);
|
||||
|
||||
Reference in New Issue
Block a user