1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-30 22:50:10 +03:00

F #3951: Sunstone fireedge token

Signed-off-by: Frederick Borges <fborges@opennebula.io>
(cherry picked from commit 20babe0c06413a03cbeaa83f6194d7aadb2c4aee)
This commit is contained in:
Frederick Borges 2020-12-14 17:39:56 +01:00 committed by Tino Vazquez
parent e32c49714c
commit 439edcafe6
No known key found for this signature in database
GPG Key ID: 14201E424D02047E
3 changed files with 10 additions and 6 deletions

View File

@ -81,7 +81,9 @@ define(function(require) {
}
}
FireedgeValidator.validateFireedgeToken(create_socket);
if (FireedgeValidator.fireedgeToken == ""){
FireedgeValidator.validateFireedgeToken(create_socket);
}
$('#loading').hide();
});

View File

@ -181,9 +181,7 @@ define(function(require) {
if (FireedgeValidator.fireedgeToken == ""){
FireedgeValidator.validateFireedgeToken(create_socket);
}
else{
create_socket();
}
}
function _initialize(opts) {
@ -306,7 +304,12 @@ define(function(require) {
}
}
FireedgeValidator.validateFireedgeToken(remote_connections, callVNC);
if (fireedgeToken == "") {
FireedgeValidator.validateFireedgeToken(remote_connections, callVNC);
}
else{
remote_connections();
}
return false;
});

View File

@ -18,7 +18,6 @@ define(function (require) {
var Config = require("sunstone-config");
var Sunstone = require("sunstone");
var FireedgeValidator = require("utils/fireedge-validator");
var io = require("socket-io-client");
var OpenNebula = require("opennebula");