fix: authentik frontend baseurl field empty when loaded from db (#7065)

This commit is contained in:
Alexander Petric
2025-11-05 12:53:46 -05:00
committed by GitHub
parent af93e9f50c
commit cb0a302a88

View File

@@ -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>