mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 12:03:17 +00:00
Merge branch 'main' into login-passkey
This commit is contained in:
@@ -173,20 +173,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) => {
|
||||
|
||||
Reference in New Issue
Block a user