mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
- Integrated all the authentications methods and various logon methods...
SVN:trunk[665]
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user