added option to auto generate admin and auth record passwords from the Admin UI
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
import Field from "@/components/base/Field.svelte";
|
||||
import Toggler from "@/components/base/Toggler.svelte";
|
||||
import OverlayPanel from "@/components/base/OverlayPanel.svelte";
|
||||
import SecretGeneratorButton from "@/components/base/SecretGeneratorButton.svelte";
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
const formId = "admin_" + CommonHelper.randomString(5);
|
||||
@@ -208,6 +209,9 @@
|
||||
required
|
||||
bind:value={password}
|
||||
/>
|
||||
<div class="form-field-addon">
|
||||
<SecretGeneratorButton />
|
||||
</div>
|
||||
</Field>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
|
||||
@@ -81,10 +81,12 @@
|
||||
|
||||
<div class="flex-fill" />
|
||||
|
||||
<button type="button" class="btn btn-expanded" on:click={() => adminUpsertPanel?.show()}>
|
||||
<i class="ri-add-line" />
|
||||
<span class="txt">New admin</span>
|
||||
</button>
|
||||
<div class="btns-group">
|
||||
<button type="button" class="btn btn-expanded" on:click={() => adminUpsertPanel?.show()}>
|
||||
<i class="ri-add-line" />
|
||||
<span class="txt">New admin</span>
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<Searchbar
|
||||
|
||||
Reference in New Issue
Block a user