Remove the call to the server with the sessionToken
This commit is contained in:
1 parent
c7d71c025a
commit
4d55f5deba
1 file changed
+1
-29
+1
-29
@@ -64,35 +64,7 @@ function loadAdvancedAlgosPlatform() {
|
||||
|
||||
browserCanvas.style.top = window.canvasApp.topMargin + 'px';
|
||||
|
||||
/* The second thing to do is to send the tokenSession to the server, so that it can prepare the server side data structures needed. */
|
||||
|
||||
let sessionToken = window.canvasApp.sessionToken;
|
||||
if (sessionToken === undefined) { sessionToken = ""}
|
||||
|
||||
let path = window.canvasApp.urlPrefix + "AABrowserAPI/authenticateUser/" + sessionToken;
|
||||
|
||||
callServer(undefined, path, onServerReponded);
|
||||
|
||||
function onServerReponded(pResponseFromServer) {
|
||||
|
||||
if (INFO_LOG === true) { console.log(spacePad(MODULE_NAME, 50) + " : " + "[INFO] loadAdvancedAlgosPlatform -> onServerReponded -> Entering function."); }
|
||||
|
||||
let responseFromServer = JSON.parse(pResponseFromServer);
|
||||
|
||||
err = responseFromServer.err;
|
||||
|
||||
if (err.result !== GLOBAL.DEFAULT_OK_RESPONSE.result) {
|
||||
|
||||
if (INFO_LOG === true) { console.log("Authentication Error. " + err.message); }
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
window.USER_PROFILE = responseFromServer.userProfile;
|
||||
console.log("window.USER_PROFILE at AppPreLoader", window.USER_PROFILE);
|
||||
|
||||
loadDebugModule();
|
||||
}
|
||||
loadDebugModule();
|
||||
|
||||
function loadDebugModule() {
|
||||
|
||||
|
||||
Reference in new issue
Block a user