feature_v0.5_netclient

This commit is contained in:
afeiszli
2021-05-29 13:22:18 -04:00
parent a3c5602b4b
commit 6c13f06001
16 changed files with 232 additions and 41 deletions

View File

@@ -282,12 +282,6 @@ func CreateExtClient(extclient models.ExtClient) error {
extclient.ClientID = clientname
}
if extclient.ClientID == "" {
cid := StringWithCharset(7, charset)
clientid := "client-" + cid
extclient.ClientID = clientid
}
extclient.LastModified = time.Now().Unix()
collection := mongoconn.Client.Database("netmaker").Collection("extclients")