GI-196
Adding validation to lost session in steps options
This commit is contained in:
@@ -5,14 +5,15 @@ if (!isset($_SESSION['USER_LOGGED'])) {
|
||||
try
|
||||
{
|
||||
var olink = document.location.href;
|
||||
olink = ( olink.search("gmail") == -1 ) ? parent.document.location.href : olink;
|
||||
|
||||
if(olink.search("gmail") == -1 ){
|
||||
prnt = parent.parent;
|
||||
top.location = top.location;
|
||||
} else {
|
||||
var data = olink.split("?");
|
||||
var odata = data[1].split("&");
|
||||
var appUid = odata[1].split("=");
|
||||
var proUid = odata[0].split("=");
|
||||
var appUid = odata[0].split("=");
|
||||
|
||||
var dataToSend = {
|
||||
"action": "credentials",
|
||||
@@ -20,9 +21,11 @@ if (!isset($_SESSION['USER_LOGGED'])) {
|
||||
"type": "processCall",
|
||||
"funParams": [
|
||||
appUid[1],
|
||||
proUid[1]
|
||||
""
|
||||
],
|
||||
"expectReturn": false
|
||||
};
|
||||
|
||||
var x = parent.postMessage(JSON.stringify(dataToSend), "*");
|
||||
if (x == undefined){
|
||||
x = parent.parent.postMessage(JSON.stringify(dataToSend), "*");
|
||||
|
||||
Reference in New Issue
Block a user