add login details to RegisterResponse so GUI clients show login display name
This commit is contained in:
parent
8843188b84
commit
0603e29c46
2 changed files with 13 additions and 0 deletions
2
api.go
2
api.go
|
@ -147,6 +147,8 @@ func (h *Headscale) RegistrationHandler(c *gin.Context) {
|
|||
resp.AuthURL = ""
|
||||
resp.MachineAuthorized = true
|
||||
resp.User = *m.Namespace.toUser()
|
||||
resp.Login = *m.Namespace.toLogin()
|
||||
|
||||
respBody, err := encode(resp, &mKey, h.privateKey)
|
||||
if err != nil {
|
||||
log.Error().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue