show the OTP id in the superuser form
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user