Created
March 20, 2023 18:11
-
-
Save iversond/090669f6972a3a3a15b67a8a6f9684ac to your computer and use it in GitHub Desktop.
Update to PeopleSoft Signon Maintenance Mode for 8.60 (https://psadmin.io/2015/11/23/maintenance-page-with-backdoor-login/)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Toggle Login */ | |
function hideLogin(isHidden) { | |
if (isHidden) { | |
document.getElementsByClassName('ps_signinentry')[0].style.display = "none"; | |
document.getElementById('maint-mode').style.display = "block"; | |
} else { | |
document.getElementsByClassName('ps_signinentry')[0].style.display = "block"; | |
document.getElementById('maint-mode').style.display = "none"; | |
} | |
} | |
/* define a handler */ | |
function doc_keyUp(e) { | |
/* http://www.javascripter.net/faq/keycodes.htm */ | |
if (e.ctrlKey && e.keyCode == 32) {hideLogin(false);} /* Ctrl+Space */ | |
} | |
/* register the handler */ | |
document.addEventListener('keyup', doc_keyUp, false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
... | |
<script type="text/javascript" src="<%=psCtxPath%><%=psHome%>/ps-hide-signin.js"></script> | |
</head> | |
<body onload="ptSignon().login();hideLogin(<%=login.isLoginHidden%>);"> | |
<div id="pswrapper"> | |
<form id="login" | |
<div class="signonMain"> | |
<div class="ps_signinentry" > | |
...delivered code here... | |
</div> | |
<div class="ps_box-button" id="maint-mode"> | |
<h3>PeopleSoft is under maintenance. Please check back later.</h3> | |
</div> | |
</div> | |
<footer id="ptfooter" class="ps_footer_text "><%=146%></footer> | |
</form> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment