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:
parent
e32c49714c
commit
439edcafe6
@ -81,7 +81,9 @@ define(function(require) {
|
||||
}
|
||||
}
|
||||
|
||||
FireedgeValidator.validateFireedgeToken(create_socket);
|
||||
if (FireedgeValidator.fireedgeToken == ""){
|
||||
FireedgeValidator.validateFireedgeToken(create_socket);
|
||||
}
|
||||
|
||||
$('#loading').hide();
|
||||
});
|
||||
|
@ -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;
|
||||
});
|
||||
|
@ -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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user