diff --git a/server/routers/external.ts b/server/routers/external.ts index 6b61703f..d8125f7a 100644 --- a/server/routers/external.ts +++ b/server/routers/external.ts @@ -185,7 +185,8 @@ authenticated.get( role.listRoleActions, ); -authenticated.get("/user", verifySessionMiddleware, user.getUser); +unauthenticated.get("/user", verifySessionMiddleware, user.getUser); + authenticated.get("/org/:orgId/users", verifyOrgAccess, user.listUsers); authenticated.delete( "/org/:orgId/user/:userId", diff --git a/src/app/auth/verify-email/page.tsx b/src/app/auth/verify-email/page.tsx index b0773d82..d409a56a 100644 --- a/src/app/auth/verify-email/page.tsx +++ b/src/app/auth/verify-email/page.tsx @@ -13,6 +13,8 @@ export default async function Page() { redirect("/"); } + console.log(user.email) + return ( <>