mirror of
https://github.com/IoTManagerProject/IoTManagerWeb.git
synced 2026-03-26 23:12:34 +03:00
передача авторизации
This commit is contained in:
@@ -52,7 +52,7 @@
|
|||||||
let preventMove = false;
|
let preventMove = false;
|
||||||
let screenSize;
|
let screenSize;
|
||||||
const blobDebug = false;
|
const blobDebug = false;
|
||||||
const devMode = true;
|
const devMode = false;
|
||||||
|
|
||||||
let percent;
|
let percent;
|
||||||
|
|
||||||
|
|||||||
@@ -237,7 +237,7 @@
|
|||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
console.log(content.result);
|
console.log(content.result);
|
||||||
if (content.result.acknowledged) {
|
if (content.result.acknowledged) {
|
||||||
window.open("https://portal.iotmanager.org/configs?username=" + userdata.username + "&id=" + content.result.insertedId, "_blank");
|
window.open("http://localhost:4000/configs?id=" + content.result.insertedId + "&token=" + Cookies.get("token_iotm2"), "_blank");
|
||||||
}
|
}
|
||||||
errors = [{ msg: "ok_success" }];
|
errors = [{ msg: "ok_success" }];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user