fix verify response

This commit is contained in:
peintnermax
2024-10-21 16:47:12 +02:00
parent 98a5e042b2
commit 8edd22a6a4
4 changed files with 29 additions and 15 deletions

View File

@@ -281,7 +281,13 @@ export async function addHumanUser({
organization,
}: AddHumanUserData) {
return userService.addHumanUser({
email: { email },
email: {
email,
verification: {
case: "isVerified",
value: false,
},
},
username: email,
profile: { givenName: firstName, familyName: lastName },
organization: organization
@@ -309,6 +315,7 @@ export async function verifyInviteCode(
}
export async function resendInviteCode(userId: string) {
console.log("resetInit");
return userService.resendInviteCode({ userId }, {});
}