mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-09-11 13:49:03 +00:00
452c76069c
Panel accounts were created only in the Node auth.db while the Organization 'Add User -> Add Existing' dropdown queries the Go server's users table via db.ListUsersNotInOrg(). This produced a mismatch where only the seeded admin appeared as linkable. Add a userSync service that mirrors create / update / delete / password-reset operations from the Node panel to the Go server's /api/users endpoints, plus a one-shot backfill at startup that creates Go-side records for any pre-existing panel users (random throwaway password; Node bcrypt remains authoritative for panel login). Reported-by: SterlynKong <SterlynKong@users.noreply.github.com>