mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-24 00:37:52 +00:00
Minor improvement on login
This commit is contained in:
parent
d4c2870d7e
commit
47b22f3950
2
api.go
2
api.go
@ -136,7 +136,7 @@ func (h *Headscale) RegistrationHandler(c *gin.Context) {
|
||||
|
||||
// The NodeKey we have matches OldNodeKey, which means this is a refresh after an key expiration
|
||||
if m.NodeKey == wgcfg.Key(req.OldNodeKey).HexString() {
|
||||
log.Printf("[%s] We have the NodeKey in the database. This is a key refresh", m.Name)
|
||||
log.Printf("[%s] We have the OldNodeKey in the database. This is a key refresh", m.Name)
|
||||
m.NodeKey = wgcfg.Key(req.NodeKey).HexString()
|
||||
db.Save(&m)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user