mirror of
https://github.com/juanfont/headscale.git
synced 2025-10-16 11:51:21 +00:00
Create constants for other reg methods
This commit is contained in:
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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user