Apply suggestions from code review
Renamed AlreadyUsed to Used Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
This commit is contained in:
parent
30788e1a70
commit
93517aa6f8
4 changed files with 7 additions and 7 deletions
2
api.go
2
api.go
|
@ -395,7 +395,7 @@ func (h *Headscale) handleAuthKey(c *gin.Context, db *gorm.DB, idKey wgkey.Key,
|
|||
m.RegisterMethod = "authKey"
|
||||
db.Save(&m)
|
||||
|
||||
pak.AlreadyUsed = true
|
||||
pak.Used = true
|
||||
db.Save(&pak)
|
||||
|
||||
resp.MachineAuthorized = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue