OM-607: Session Block: Cuando se pierde session en alguna de las opciones de Admin>Settings, se bloquea processmaker completamente

more changes

change login.php

update pr
This commit is contained in:
Rodrigo Quelca
2016-04-25 23:17:58 -04:00
parent 403a3a873b
commit decca9efc8
3 changed files with 40 additions and 1 deletions

View File

@@ -28,6 +28,21 @@ SELECT LANG_ID, LANG_NAME FROM langOptions
</FORGOT_PASWORD_LINK>
<JS type="javascript"><![CDATA[
//validate iframe login
if(inIframe()) {
if (PM.Sessions.getCookie('PM-TabPrimary') !== '101010010'
&& (window.location.pathname.indexOf("login/login") !== -1
|| window.location.pathname.indexOf("sysLogin") !== -1)) {
window.top.location.href = window.location.pathname;
}
}
function inIframe () {
try {
return window.self !== window.top;
} catch (e) {
return true;
}
};
function getElementsByClassNameIE8(node, classname) {
var a = [];
var re = new RegExp('(^| )'+classname+'( |$)');