update passwd auto
This commit is contained in:
parent
0d5c94e06f
commit
caba808d8b
10
ttd.go
10
ttd.go
@ -558,8 +558,18 @@ func (s *ServerTTD) UpdateCompanies() {
|
|||||||
logErrorDebug(err, "Server.UpdateClients() : Send(PacketAdminPoll) : AdminPacketAdminRCon")
|
logErrorDebug(err, "Server.UpdateClients() : Send(PacketAdminPoll) : AdminPacketAdminRCon")
|
||||||
break
|
break
|
||||||
} else if !co.Protected {
|
} else if !co.Protected {
|
||||||
|
for _, cc := range cfg.Clients {
|
||||||
|
if cc.CompanyID == co.CompanyID {
|
||||||
|
s.SetPasswd(co.CompanyExtlID, cc.Passwd)
|
||||||
|
co.Protected = true
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if !co.Protected {
|
||||||
s.SetPasswd(co.CompanyExtlID, "blabla")
|
s.SetPasswd(co.CompanyExtlID, "blabla")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
s.Status.UpdateCompanies = time.Now()
|
s.Status.UpdateCompanies = time.Now()
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Code generated by version.sh (@generated) DO NOT EDIT.
|
// Code generated by version.sh (@generated) DO NOT EDIT.
|
||||||
package main
|
package main
|
||||||
var githash = "f84f361"
|
var githash = "0d5c94e"
|
||||||
var buildstamp = "2021-11-10_06:55:15"
|
var buildstamp = "2021-11-10_07:04:16"
|
||||||
var commits = "186"
|
var commits = "187"
|
||||||
var version = "f84f361-b186 - 2021-11-10_06:55:15"
|
var version = "0d5c94e-b187 - 2021-11-10_07:04:16"
|
||||||
|
Loading…
Reference in New Issue
Block a user