fixed superuser OTP id input reactivity, enabled truncate dropdown option for system collections, updated jsvm types
This commit is contained in:
@@ -138,7 +138,7 @@
|
||||
otpAuthSubmitting = true;
|
||||
|
||||
try {
|
||||
await ApiClient.collection("_superusers").authWithOTP(otpId, otpPassword, { mfaId });
|
||||
await ApiClient.collection("_superusers").authWithOTP(otpId || lastOTPId, otpPassword, { mfaId });
|
||||
removeAllToasts();
|
||||
setErrors({});
|
||||
replace("/");
|
||||
@@ -238,7 +238,18 @@
|
||||
<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 />
|
||||
<input
|
||||
type="text"
|
||||
id={uniqueId}
|
||||
value={otpId}
|
||||
placeholder={lastOTPId}
|
||||
on:change={(e) => {
|
||||
console.log("change");
|
||||
otpId = e.target.value || lastOTPId;
|
||||
e.target.value = otpId;
|
||||
}}
|
||||
required
|
||||
/>
|
||||
</Field>
|
||||
|
||||
<Field class="form-field required" name="password" let:uniqueId>
|
||||
|
||||
Reference in New Issue
Block a user