fix: authentik frontend baseurl field empty when loaded from db (#7065)
This commit is contained in:
@@ -6,12 +6,13 @@
|
||||
|
||||
$: enabled = value != undefined
|
||||
|
||||
let org = ''
|
||||
// Initialize org from existing auth_url
|
||||
$: org = value?.connect_config?.auth_url?.replace('/application/o/authorize/', '') ?? ''
|
||||
|
||||
$: changeOrg(org)
|
||||
|
||||
function changeOrg(org) {
|
||||
if (value) {
|
||||
if (value && org) {
|
||||
value = {
|
||||
...value,
|
||||
connect_config: {
|
||||
@@ -50,7 +51,7 @@
|
||||
<span class="text-primary font-semibold text-sm"
|
||||
>Authentik Url ({'AUTHENTIK_HOST/application/o/authorize/'})</span
|
||||
>
|
||||
<input type="text" placeholder="yourorg" bind:value={org} />
|
||||
<input type="text" placeholder="Authentik base url" bind:value={org} required />
|
||||
</label>
|
||||
<label class="block pb-2">
|
||||
<span class="text-primary font-semibold text-sm">Custom Name</span>
|
||||
|
||||
Reference in New Issue
Block a user