Create constants for other reg methods
This commit is contained in:
parent
58d1255357
commit
106b1e7e8d
3 changed files with 4 additions and 4 deletions
2
oidc.go
2
oidc.go
|
@ -223,7 +223,7 @@ func (h *Headscale) OIDCCallback(ctx *gin.Context) {
|
|||
machine.IPAddress = ip.String()
|
||||
machine.NamespaceID = namespace.ID
|
||||
machine.Registered = true
|
||||
machine.RegisterMethod = "oidc"
|
||||
machine.RegisterMethod = RegisterMethodOIDC
|
||||
machine.LastSuccessfulUpdate = &now
|
||||
h.db.Save(&machine)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue