open the guide page on first time logon
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9469 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
6f3bf9e459
commit
d3a70cefa2
@ -56,8 +56,21 @@ function onlogin(data, txtStatus) {
|
||||
$("#logstatus").text("Login successful");
|
||||
$("#logdialog").dialog("close");
|
||||
|
||||
// Remembered what page they were trying to go to
|
||||
window.location = 'index.php';
|
||||
//not the first time to log
|
||||
if ($.cookie('logonflag')){
|
||||
// Remembered what page they were trying to go to
|
||||
window.location = window.location.pathname;
|
||||
}
|
||||
else{
|
||||
window.location = 'manual.php';
|
||||
}
|
||||
|
||||
//set the logonflag
|
||||
$.cookie('logonflag', 'yes', {
|
||||
path : '/xcat',
|
||||
expires : 100
|
||||
});
|
||||
|
||||
} else {
|
||||
$("#logstatus").text("Authentication failure");
|
||||
$("#logstatus").css("color", "#FF0000");
|
||||
|
@ -33,6 +33,7 @@ function loadPage(){
|
||||
<li><a href="configure.php" class="top_link">Configure</a></li>
|
||||
<li><a href="provision.php" class="top_link">Provision</a></li>
|
||||
<li><a href="monitor.php" class="top_link">Monitor</a></li>
|
||||
<li><a href="manual.php" class="top_link">Guide</a></li>
|
||||
</ul>';
|
||||
|
||||
// User name and log out section
|
||||
@ -80,7 +81,8 @@ function login() {
|
||||
// xcatauth.js will open a dialog box
|
||||
// asking for the user name and password
|
||||
echo
|
||||
'<script src="js/xcatauth.js" type="text/javascript"></script>
|
||||
'<script src="js/jquery/jquery.cookie.min.js" type="text/javascript"></script>
|
||||
<script src="js/xcatauth.js" type="text/javascript"></script>
|
||||
<div id=logdialog>
|
||||
<p>Give the user name and password for the xCAT management node</p>
|
||||
<form id=loginform>
|
||||
|
Loading…
Reference in New Issue
Block a user