fix get user rauth

This commit is contained in:
Milo Schwartz 2024-10-13 15:05:52 -04:00
parent 6908ec5bc2
commit 26a78e2c51
2 changed files with 4 additions and 1 deletions

View file

@ -185,7 +185,8 @@ authenticated.get(
role.listRoleActions, role.listRoleActions,
); );
authenticated.get("/user", verifySessionMiddleware, user.getUser); unauthenticated.get("/user", verifySessionMiddleware, user.getUser);
authenticated.get("/org/:orgId/users", verifyOrgAccess, user.listUsers); authenticated.get("/org/:orgId/users", verifyOrgAccess, user.listUsers);
authenticated.delete( authenticated.delete(
"/org/:orgId/user/:userId", "/org/:orgId/user/:userId",

View file

@ -13,6 +13,8 @@ export default async function Page() {
redirect("/"); redirect("/");
} }
console.log(user.email)
return ( return (
<> <>
<VerifyEmailForm email={user.email}/> <VerifyEmailForm email={user.email}/>