mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 17:29:15 +08:00
feature_v0.5_netclient
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user