diff --git a/frontend/src/routes/login/+page.svelte b/frontend/src/routes/login/+page.svelte index 1283e6ce..6527a482 100644 --- a/frontend/src/routes/login/+page.svelte +++ b/frontend/src/routes/login/+page.svelte @@ -360,496 +360,490 @@
OxiCloud
- -

- {#if mode === 'login'} - {t('auth.sign_in', 'Sign in')} - {:else if mode === 'register'} - {t('auth.register', 'Create account')} - {:else} - {t('auth.setup_title', 'Initial setup')} - {/if} -

- - {#if sessionExpiredNotice} - - {/if} - - {#if postRegisterNotice && mode === 'login'} -
- {postRegisterNotice} - -
- {/if} - +

{#if mode === 'login'} - - {#if passwordLoginEnabled || magicLinkLoginEnabled} - {#if error} - - {/if} - {#if magicStatus} -
- {magicStatus.text} -
- {/if} -
-
- -
- -
-
- - {#if passwordLoginEnabled} -
- -
- - -
- {#if capsOn} -
{t('auth.caps_lock', 'Caps Lock is on')}
- {/if} -
- {/if} - - -
- {/if} - - {#if oidc.enabled} - {#if passwordLoginEnabled} -
{t('auth.or', 'or')}
- {/if} - - - {t( - 'auth.sso_login_provider', - { provider: oidc.provider_name ?? 'SSO' }, - 'Sign in with {{provider}}' - )} - - {/if} - - {#if passwordLoginEnabled} -
- {t('auth.no_account', 'No account?')} - + {error}
{/if} - - {#if setupAvailable} -
- {t('auth.admin_setup', 'First time?')} - + {#if magicStatus} +
+ {magicStatus.text}
{/if} - {:else if mode === 'register'} - {#if regError}{/if} -
- +
- - -
-
-
- + {#if passwordLoginEnabled}
-
- {#if !regEmailOnly} -
- -
- - -
- {#if matchState} -
- {matchState === 'ok' - ? t('auth.passwords_match', 'Passwords match') - : t('auth.passwords_mismatch', "Passwords don't match")} -
- {/if} -
- {/if} {/if} - -
-
- {t('auth.have_account', 'Already have an account?')} - -
- {:else} -
-
-
1
-
{t('auth.setup_step1', 'Admin')}
-
-
-
2
-
{t('auth.setup_step2', 'System')}
-
-
-
3
-
{t('auth.setup_step3', 'Completed')}
-
-
- - {#if setupError}{/if} - {#if setupSuccess}
{setupSuccess}
{/if} - -
-
- -
- -
-
- -
- -
- -
-
- -
- -
- - -
- {#if setupCapsOn} -
{t('auth.caps_lock', 'Caps Lock is on')}
- {/if} -
- -
- -
- - -
- {#if setupMatchState} -
- {setupMatchState === 'ok' - ? t('auth.passwords_match', 'Passwords match') - : t('auth.passwords_mismatch', "Passwords don't match")} -
- {/if} -
+ {/if} + {#if oidc.enabled} + {#if passwordLoginEnabled} +
{t('auth.or', 'or')}
+ {/if} + + + {t( + 'auth.sso_login_provider', + { provider: oidc.provider_name ?? 'SSO' }, + 'Sign in with {{provider}}' + )} + + {/if} + + {#if passwordLoginEnabled}
- {t('auth.back_to_login', 'Already configured?')} + {t('auth.no_account', 'No account?')}
{/if} + {#if setupAvailable} +
+ {t('auth.admin_setup', 'First time?')} + +
+ {/if} + {:else if mode === 'register'} + {#if regError}{/if} +
+ +
+ + +
+
+ + +
+ + {#if passwordLoginEnabled} +
+ +
+ + +
+ {#if regCapsOn} +
{t('auth.caps_lock', 'Caps Lock is on')}
+ {/if} +
+ {#if !regEmailOnly} +
+ +
+ + +
+ {#if matchState} +
+ {matchState === 'ok' + ? t('auth.passwords_match', 'Passwords match') + : t('auth.passwords_mismatch', "Passwords don't match")} +
+ {/if} +
+ {/if} + {/if} + +
+
+ {t('auth.have_account', 'Already have an account?')} + +
+ {:else} +
+
+
1
+
{t('auth.setup_step1', 'Admin')}
+
+
+
2
+
{t('auth.setup_step2', 'System')}
+
+
+
3
+
{t('auth.setup_step3', 'Completed')}
+
+
+ + {#if setupError}{/if} + {#if setupSuccess}
{setupSuccess}
{/if} + +
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ + +
+ {#if setupCapsOn} +
{t('auth.caps_lock', 'Caps Lock is on')}
+ {/if} +
+ +
+ +
+ + +
+ {#if setupMatchState} +
+ {setupMatchState === 'ok' + ? t('auth.passwords_match', 'Passwords match') + : t('auth.passwords_mismatch', "Passwords don't match")} +
+ {/if} +
+ + +
+ +
+ {t('auth.back_to_login', 'Already configured?')} + +
+ {/if} +