- Integrated all the authentications methods and various logon methods...

SVN:trunk[665]
This commit is contained in:
Denis Flaven
2010-08-09 10:19:14 +00:00
parent cdf9812fbe
commit 272387d61e
15 changed files with 348 additions and 144 deletions

View File

@@ -231,5 +231,17 @@ class utils
return $sUrl;
}
/**
* Tells whether or not log off operation is supported.
* Actually in only one case:
* 1) iTop is using an internal authentication
* 2) the user did not log-in using the "popup" mode (i.e basic authentication) or by passing credentials in the URL
* @return boolean True if logoff is supported, false otherwise
*/
static function CanLogOff()
{
return (isset($_SESSION['login_mode']) && $_SESSION['login_mode'] == 'form');
}
}
?>