CAS integration: added support of JA-SIG Central Authentication Service (CAS) with log-off support, using phpCAS API.

SVN:trunk[1280]
This commit is contained in:
Denis Flaven
2011-06-10 14:51:17 +00:00
parent 4837984ac3
commit 733953ac99
8 changed files with 85 additions and 103 deletions

View File

@@ -144,7 +144,7 @@ class iTopWebPage extends NiceWebPage
// that the tabs aren't changed on click, and any custom event name can be
// specified. Note that if you define a callback for the 'select' event, it
// will be executed for the selected tab whenever the hash changes.
tabs.tabs({ event: 'change' });
tabs.tabs({ event: 'change'});
}
catch(err)
{
@@ -665,7 +665,7 @@ EOF
$sLogOffMenu = "<span id=\"logOffBtn\"><ul><li><img src=\"../images/onOffBtn.png\"><ul>";
$sLogOffMenu .= "<li><span>$sLogonMessage</span></li>\n";
if (utils::CanLogOff() && UserRights::CanLogOff())
if (utils::CanLogOff())
{
//$sLogOffMenu .= "<li><a href=\"../pages/UI.php?loginop=logoff\">".Dict::S('UI:LogOffMenu')."</a></li>\n";
$sLogOffMenu .= "<li><a href=\"../pages/logoff.php\">".Dict::S('UI:LogOffMenu')."</a></li>\n";