[#4192] take collection minPasswordLength in consideration for the user password generator btn

This commit is contained in:
Gani Georgiev
2024-01-20 13:17:38 +02:00
parent c642a860ca
commit d9b219d64f
32 changed files with 43 additions and 41 deletions
@@ -104,7 +104,9 @@
bind:value={record.password}
/>
<div class="form-field-addon">
<SecretGeneratorButton length={15} />
<SecretGeneratorButton
length={Math.max(15, collection?.options?.minPasswordLength || 0)}
/>
</div>
</Field>
</div>
@@ -143,7 +145,7 @@
() => {},
() => {
record.verified = !e.target.checked;
}
},
);
}}
/>