feat: add change password to web and mobile settings

Add a change password feature using Better Auth's built-in
changePassword endpoint. On web, a dialog opens from a new card in the
Account section. On mobile, a dedicated screen is pushed from a new
SettingsRow. Both use listAccounts to detect credential-based accounts
and only show the option when the user has a password and password login
is enabled (respecting OIDC-only configurations).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-13 20:43:34 -04:00
co-authored by Claude Opus 4.6
parent 1798107afc
commit b7bacb352f
7 changed files with 449 additions and 0 deletions
+4
View File
@@ -31,6 +31,10 @@ BETTER_AUTH_URL=http://localhost:3000
# Log verbosity: error, warn, info, debug (default: info)
# LOG_LEVEL=info
# ─── Update Checks ────────────────────────────────────────────────────
# Base URL for the public API used for update checks and other centralized features
# PUBLIC_API_URL=https://public-api.sofa.watch
# ─── Image Caching ─────────────────────────────────────────────────────
# Set IMAGE_CACHE_ENABLED to "false" to use TMDB CDN directly (default: enabled)
# IMAGE_CACHE_ENABLED=true