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

@@ -44,7 +44,7 @@ export default async function Page({
<Alert type={AlertType.INFO}> <Alert type={AlertType.INFO}>
<span> <span>
A passkey is an authentication method on a device like your A passkey is an authentication method on a device like your
fingerprint, Apple FaceID or similar.{" "} fingerprint, Apple FaceID or similar.
<a <a
className="text-primary-light-500 dark:text-primary-dark-500 hover:text-primary-light-300 hover:dark:text-primary-dark-300" className="text-primary-light-500 dark:text-primary-dark-500 hover:text-primary-light-300 hover:dark:text-primary-dark-300"
target="_blank" target="_blank"

View File

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