This commit is contained in:
Max Peintner
2023-06-29 12:53:48 +02:00
parent 0f2968eccc
commit 00c8b640c6
2 changed files with 9 additions and 9 deletions

View File

@@ -143,20 +143,20 @@ export async function addHumanUser(
{ email, firstName, lastName, password }: AddHumanUserData
): Promise<string> {
const mgmt = user.getUser(server);
const payload = {
email: { email },
username: email,
profile: { firstName, lastName },
};
return mgmt
.addHumanUser(
password
? {
email: { email },
username: email,
profile: { firstName, lastName },
...payload,
password: { password },
}
: {
email: { email },
username: email,
profile: { firstName, lastName },
},
: payload,
{}
)
.then((resp: AddHumanUserResponse) => {