mirror of
https://github.com/IoTManagerProject/IoTManagerWeb.git
synced 2026-03-26 15:02:21 +03:00
передача авторизации
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
let preventMove = false;
|
||||
let screenSize;
|
||||
const blobDebug = false;
|
||||
const devMode = true;
|
||||
const devMode = false;
|
||||
|
||||
let percent;
|
||||
|
||||
|
||||
@@ -237,7 +237,7 @@
|
||||
if (res.ok) {
|
||||
console.log(content.result);
|
||||
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" }];
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user