X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fframework%2Futils%2Futils.js;fp=skyquake%2Fframework%2Futils%2Futils.js;h=93f8d7d838eb42d10dad07058b2e70c64bf07745;hp=ed1f113112ea15785c7587e17ab602e8f8ea4ae4;hb=9be8b4847b580cea9e28d2f2a02166753c29b58e;hpb=cefb13b7e32e68315f5f246ff27010315c830834 diff --git a/skyquake/framework/utils/utils.js b/skyquake/framework/utils/utils.js index ed1f11311..93f8d7d83 100644 --- a/skyquake/framework/utils/utils.js +++ b/skyquake/framework/utils/utils.js @@ -185,26 +185,7 @@ Utils.getPacketDataWithUnitPrefix = function(number, precision) { } } Utils.loginHash = "#/login"; -Utils.setAuthentication = function(username, password, cb) { - var self = this; - var AuthBase64 = btoa(username + ":" + password); - window.sessionStorage.setItem("auth", AuthBase64); - self.detectInactivity(); - $.ajax({ - url: '//' + window.location.hostname + ':' + window.location.port + '/check-auth?api_server=' + API_SERVER, - type: 'GET', - beforeSend: Utils.addAuthorizationStub, - success: function(data) { - //console.log("LoggingSource.getLoggingConfig success call. data=", data); - if (cb) { - cb(); - }; - }, - error: function(data) { - Utils.clearAuthentication(); - } - }); -} + Utils.clearAuthentication = function(callback) { var self = this; window.sessionStorage.removeItem("auth");