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