Apply suggestions from code review

Renamed AlreadyUsed to Used

Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
This commit is contained in:
Juan Font 2021-10-13 22:51:55 +02:00 committed by GitHub
parent 30788e1a70
commit 93517aa6f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

2
api.go
View file

@ -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