show the OTP id in the superuser form

This commit is contained in:
Gani Georgiev
2024-11-23 12:44:03 +02:00
parent c3b347af4b
commit b34453afc7
30 changed files with 123 additions and 117 deletions
@@ -99,8 +99,8 @@
const batch = pb.createBatch();
batch.collection('${collection?.name}').create({ ... });
batch.collection('${collection?.name}').update("RECORD_ID", { ... });
batch.collection('${collection?.name}').delete("RECORD_ID");
batch.collection('${collection?.name}').update('RECORD_ID', { ... });
batch.collection('${collection?.name}').delete('RECORD_ID');
batch.collection('${collection?.name}').upsert({ ... });
const result = await batch.send();
@@ -236,9 +236,15 @@
<!-- auth with otp -->
<form class="block" on:submit|preventDefault={authWithOTP}>
<Field class="form-field required" name="otpId" let:uniqueId>
<label for={uniqueId}>Id</label>
<input type="text" id={uniqueId} bind:value={otpId} required />
</Field>
<Field class="form-field required" name="password" let:uniqueId>
<label for={uniqueId}>One-time password</label>
<input type="password" id={uniqueId} bind:value={otpPassword} required />
<!-- svelte-ignore a11y-autofocus -->
<input type="password" id={uniqueId} bind:value={otpPassword} required autofocus />
</Field>
<button