mirror of
https://github.com/azukaar/Cosmos-Server.git
synced 2026-01-05 20:05:02 -06:00
[release] v0.10.0-unstable3
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cosmos-server",
|
||||
"version": "0.10.0-unstable2",
|
||||
"version": "0.10.0-unstable3",
|
||||
"description": "",
|
||||
"main": "test-server.js",
|
||||
"bugs": {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user