mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
- Integrated all the authentications methods and various logon methods...
SVN:trunk[665]
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
*/
|
||||
|
||||
|
||||
class UserLDAP extends User
|
||||
class UserLDAP extends UserInternal
|
||||
{
|
||||
public static function Init()
|
||||
{
|
||||
@@ -157,6 +157,12 @@ class UserLDAP extends User
|
||||
return false;
|
||||
}
|
||||
|
||||
public function CanLogOff()
|
||||
{
|
||||
// Internal authentication allows everybody to log off
|
||||
return true;
|
||||
}
|
||||
|
||||
public function ChangePassword($sOldPassword, $sNewPassword)
|
||||
{
|
||||
return false;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
*/
|
||||
|
||||
|
||||
class UserLocal extends User
|
||||
class UserLocal extends UserInternal
|
||||
{
|
||||
public static function Init()
|
||||
{
|
||||
@@ -74,6 +74,12 @@ class UserLocal extends User
|
||||
return true;
|
||||
}
|
||||
|
||||
public function CanLogOff()
|
||||
{
|
||||
// Internal authentication allows everybody to log off
|
||||
return true;
|
||||
}
|
||||
|
||||
public function ChangePassword($sOldPassword, $sNewPassword)
|
||||
{
|
||||
if ($this->Get('password') == $sOldPassword)
|
||||
|
||||
Reference in New Issue
Block a user