Revert "fix authentik not being removed when toggle is disabled"
This reverts commit 641ab9ef34.
This commit is contained in:
@@ -129,7 +129,7 @@ async function validateAndSanitizeCertificateId(
|
||||
return { certificateId };
|
||||
}
|
||||
|
||||
function parseAuthentikConfig(formData: FormData): ProxyHostAuthentikInput | null | undefined {
|
||||
function parseAuthentikConfig(formData: FormData): ProxyHostAuthentikInput | undefined {
|
||||
if (!formData.has("authentik_present")) {
|
||||
return undefined;
|
||||
}
|
||||
@@ -140,11 +140,6 @@ function parseAuthentikConfig(formData: FormData): ProxyHostAuthentikInput | nul
|
||||
? parseCheckbox(formData.get("authentik_enabled"))
|
||||
: false
|
||||
: undefined;
|
||||
|
||||
if (enabledIndicator && enabledValue === false) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const outpostDomain = parseOptionalText(formData.get("authentik_outpost_domain"));
|
||||
const outpostUpstream = parseOptionalText(formData.get("authentik_outpost_upstream"));
|
||||
const authEndpoint = parseOptionalText(formData.get("authentik_auth_endpoint"));
|
||||
|
||||
@@ -587,9 +587,6 @@ function normalizeAuthentikInput(
|
||||
if (input === null) {
|
||||
return undefined;
|
||||
}
|
||||
if (input.enabled === false) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const next: ProxyHostAuthentikMeta = { ...(existing ?? {}) };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user