mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
The admin password reset and the first-user check read and wrote the Better Auth tables with raw SQL, so session delete hooks never ran on the reset path. - the admin is found with findUserByEmail and its credential account is updated by id with the configured password hasher - sessions are removed with deleteUserSessions, which runs the session delete hooks - a missing credential account logs a warning instead of updating nothing - /api/auth-info/config counts users through the adapter