[release] v0.10.0-unstable3

This commit is contained in:
Yann Stepienik
2023-08-26 16:23:37 +01:00
parent 8e83fde02e
commit bb11cbbe96
3 changed files with 6 additions and 6 deletions

View File

@@ -111,12 +111,12 @@ const AddDeviceModal = ({ users, config, isAdmin, refreshConfig, devices }) => {
/>
<DownloadFile
filename={isDone.DeviceName + `.key`}
content={isDone.PrivateKey}
content={isDone.PublicKey}
label={"Download " + isDone.DeviceName + `.key`}
/>
<DownloadFile
filename={isDone.DeviceName + `.crt`}
content={isDone.PublicKey}
content={isDone.PrivateKey}
label={"Download " + isDone.DeviceName + `.crt`}
/>
<DownloadFile

View File

@@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.10.0-unstable2",
"version": "0.10.0-unstable3",
"description": "",
"main": "test-server.js",
"bugs": {

View File

@@ -70,7 +70,7 @@ func DeviceCreate(w http.ResponseWriter, req *http.Request) {
_, err3 := c.InsertOne(nil, map[string]interface{}{
"Nickname": nickname,
"DeviceName": deviceName,
"PublicKey": cert,
"PublicKey": key,
"IP": request.IP,
})
@@ -103,8 +103,8 @@ func DeviceCreate(w http.ResponseWriter, req *http.Request) {
"data": map[string]interface{}{
"Nickname": nickname,
"DeviceName": deviceName,
"PublicKey": cert,
"PrivateKey": key,
"PublicKey": key,
"PrivateKey": cert,
"IP": request.IP,
"Config": configYml,
"CA": capki,