mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-25 14:30:24 +01:00
[#4192] take collection minPasswordLength in consideration for the user password generator btn
This commit is contained in:
1 parent
c642a860ca
commit
d9b219d64f
32 files changed
+43
-41
No files matched your search
@@ -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;
|
||||
}
|
||||
},
|
||||
);
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user