- 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

@@ -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;

View File

@@ -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)