zerobyte/app/server/core
Parman Mohammadalizadeh 2b70267e01 feat: add option to disable password login
Adds a global admin setting to hide the username/password form on the
login page, useful for deployments that rely solely on SSO/OIDC or
passkeys. The form defaults to enabled so existing deployments are
unaffected.

Changes:
- Add PASSWORD_LOGIN_ENABLED_KEY constant
- Add isPasswordLoginEnabled / setPasswordLoginEnabled to system service
  (defaults to true when no DB record exists)
- Add GET/PUT /api/v1/system/password-login-status endpoints (GET
  auth-gated for admin use; setting is exposed to the login page via
  the existing getLoginOptions server function)
- Extend getLoginOptions to include passwordLoginEnabled
- Conditionally render the password login form in LoginPage
- Add "Enable password login" toggle in the admin System Settings tab,
  next to "Enable new user registrations"
- Add corresponding entries to generated API client files
  (types.gen.ts, sdk.gen.ts, @tanstack/react-query.gen.ts)

Closes #941
2026-06-05 22:49:07 +03:30
..
__tests__ refactor(mutext): persist repository locks in database (#895) 2026-05-19 18:59:40 +02:00
capabilities.ts chore: fixed unused types (#824) 2026-04-22 22:04:46 +02:00
config.ts refactor: reject all non uv passkeys 2026-06-03 17:03:00 +02:00
constants.ts feat: add option to disable password login 2026-06-05 22:49:07 +03:30
events.ts chore: fixed unused types (#824) 2026-04-22 22:04:46 +02:00
repository-mutex.ts refactor(mutext): persist repository locks in database (#895) 2026-05-19 18:59:40 +02:00
request-context.ts chore: fixed unused types (#824) 2026-04-22 22:04:46 +02:00
restic.ts fix(rclone): pass explicitly the RCLONE_CONF env var (#779) 2026-04-12 09:25:57 +02:00
scheduler.ts fix: allow quoted urls in env variables (#676) 2026-03-17 22:09:22 +01:00