mirror of
https://github.com/tale/headplane.git
synced 2026-07-26 07:48:14 +00:00
22a521dff5
Headscale's RegisterNodeRequest.user proto field is a string that the RegisterNode handler resolves with GetUserByName (a strict WHERE name=? SQL match) — there is no numeric-id fallback. The Owner select in the Register Machine Key dialog was sending user.id, so registration failed with ErrUserNotFound whenever the display name and the numeric id disagreed (which is always for unlinked Headscale users). Send user.name instead. Closes #532 Amp-Thread-ID: https://ampcode.com/threads/T-019e7ae4-6862-760c-a3e7-239350eab71d Co-authored-by: Amp <amp@ampcode.com>