Fixed updated device config on backend
This commit is contained in:
parent
e0e2d9b164
commit
a0514b4be5
1 changed files with 3 additions and 0 deletions
|
|
@ -117,6 +117,9 @@ func actionDeviceUpdate(w http.ResponseWriter, r *http.Request) { // {{{
|
||||||
}
|
}
|
||||||
device.Password = "" // don't leak unnecessarily
|
device.Password = "" // don't leak unnecessarily
|
||||||
|
|
||||||
|
// Remove current connection to router
|
||||||
|
delete(devices, device.ID)
|
||||||
|
|
||||||
j, _ := json.Marshal(struct {
|
j, _ := json.Marshal(struct {
|
||||||
OK bool
|
OK bool
|
||||||
Device Device
|
Device Device
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue