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}>
<span>
A passkey is an authentication method on a device like your
fingerprint, Apple FaceID or similar.{" "}
fingerprint, Apple FaceID or similar.
<a
className="text-primary-light-500 dark:text-primary-dark-500 hover:text-primary-light-300 hover:dark:text-primary-dark-300"
target="_blank"

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) => {