Fix: Add OIDC/SSO login button and hide password form when OIDC-only

- Added SSO login button on login page that appears when OIDC is configured
- Button shows provider name (e.g. 'Sign in with Authentik')
- When 'Disable password login' is enabled, hides password form and
  shows only the SSO button
- Added auth divider between password and SSO sections
- Added i18n keys (or, sso_login, sso_login_provider) for all 8 locales
- Fixed missing comma in it.json locale file

Fixes #88, Fixes #89
This commit is contained in:
Dionisio
2026-02-13 19:59:13 +01:00
parent c2c9bb700d
commit 53625776cb
11 changed files with 139 additions and 9 deletions
+11
View File
@@ -94,6 +94,17 @@
<button type="submit" class="auth-button" data-i18n="auth.login_button">Log in</button>
</form>
<!-- SSO / OIDC login section (hidden by default, shown dynamically) -->
<div id="oidc-login-section" style="display: none;">
<div class="auth-divider" id="auth-divider">
<span data-i18n="auth.or">or</span>
</div>
<button type="button" class="auth-button auth-button-oidc" id="oidc-login-btn">
<i class="fas fa-key"></i>
<span data-i18n="auth.sso_login">Sign in with SSO</span>
</button>
</div>
<div class="auth-toggle">
<span data-i18n="auth.no_account">Don't have an account?</span>
<span class="auth-toggle-link" id="show-register" data-i18n="auth.register">Sign up</span>