diff --git a/web/src/lib/components/admin-page/settings/auth/auth-settings.svelte b/web/src/lib/components/admin-page/settings/auth/auth-settings.svelte new file mode 100644 index 0000000000..d9c879faff --- /dev/null +++ b/web/src/lib/components/admin-page/settings/auth/auth-settings.svelte @@ -0,0 +1,242 @@ + + +{#if isConfirmOpen} + (isConfirmOpen = false)} + onConfirm={() => handleSave(true)} + > + +
+

Are you sure you want to disable all login methods? Login will be completely disabled.

+

+ To re-enable, use a + + Server Command. +

+
+
+
+{/if} + +
+
+
+
+ +
+

+ For more details about this feature, refer to the docs. +

+ + + + {#if config.oauth.enabled} +
+ + + + + + + + + + + + + + + + + + + + + + + handleToggleOverride()} + bind:checked={config.oauth.mobileOverrideEnabled} + /> + + {#if config.oauth.mobileOverrideEnabled} + + {/if} + {/if} +
+
+ + +
+
+ +
+
+
+ + dispatch('reset', { ...detail, configKeys: ['passwordLogin', 'oauth'] })} + on:save={() => handleSave(false)} + /> +
+
+
+
diff --git a/web/src/lib/components/admin-page/settings/confirm-disable-login.svelte b/web/src/lib/components/admin-page/settings/confirm-disable-login.svelte deleted file mode 100644 index 621f51de9f..0000000000 --- a/web/src/lib/components/admin-page/settings/confirm-disable-login.svelte +++ /dev/null @@ -1,25 +0,0 @@ - - - - -
-

Are you sure you want to disable all login methods? Login will be completely disabled.

-

- To re-enable, use a - - Server Command. -

-
-
-
diff --git a/web/src/lib/components/admin-page/settings/oauth/oauth-settings.svelte b/web/src/lib/components/admin-page/settings/oauth/oauth-settings.svelte deleted file mode 100644 index 8173c353eb..0000000000 --- a/web/src/lib/components/admin-page/settings/oauth/oauth-settings.svelte +++ /dev/null @@ -1,213 +0,0 @@ - - -{#if isConfirmOpen} - handleConfirm(false)} onConfirm={() => handleConfirm(true)} /> -{/if} - -
-
-
-

- For more details about this feature, refer to the docs. -

- - - - {#if config.oauth.enabled} -
- - - - - - - - - - - - - - - - - - - - - - - handleToggleOverride()} - bind:checked={config.oauth.mobileOverrideEnabled} - /> - - {#if config.oauth.mobileOverrideEnabled} - - {/if} - {/if} - - dispatch('reset', { ...detail, configKeys: ['oauth'] })} - on:save={() => handleSave()} - showResetToDefault={!isEqual(savedConfig.oauth, defaultConfig.oauth)} - {disabled} - /> - -
-
diff --git a/web/src/lib/components/admin-page/settings/password-login/password-login-settings.svelte b/web/src/lib/components/admin-page/settings/password-login/password-login-settings.svelte deleted file mode 100644 index a022583527..0000000000 --- a/web/src/lib/components/admin-page/settings/password-login/password-login-settings.svelte +++ /dev/null @@ -1,68 +0,0 @@ - - -{#if isConfirmOpen} - handleConfirm(false)} onConfirm={() => handleConfirm(true)} /> -{/if} - -
-
-
-
- - - dispatch('reset', { ...detail, configKeys: ['passwordLogin'] })} - on:save={() => handleSave()} - showResetToDefault={!isEqual(savedConfig.passwordLogin, defaultConfig.passwordLogin)} - {disabled} - /> -
-
-
-
diff --git a/web/src/routes/admin/system-settings/+page.svelte b/web/src/routes/admin/system-settings/+page.svelte index c57a6b1697..20a9557c7f 100644 --- a/web/src/routes/admin/system-settings/+page.svelte +++ b/web/src/routes/admin/system-settings/+page.svelte @@ -1,34 +1,33 @@