diff options
author | xue <> | 2005-12-15 21:37:12 +0000 |
---|---|---|
committer | xue <> | 2005-12-15 21:37:12 +0000 |
commit | dbf44bde6e86c270d618be7661dd4e2fb5cf2563 (patch) | |
tree | 21da4debae2c98b84b3a0333088d5d4f11fe6354 | |
parent | fb495d3041cacb8c305ebecaa60c1bb7afa4dddf (diff) |
Fixed a bug about user file extension.
-rw-r--r-- | framework/Security/TUserManager.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/framework/Security/TUserManager.php b/framework/Security/TUserManager.php index 3c30dc19..783d1c60 100644 --- a/framework/Security/TUserManager.php +++ b/framework/Security/TUserManager.php @@ -192,6 +192,11 @@ class TUser extends TComponent implements IUser class TUserManager extends TModule
{
/**
+ * extension name to the user file
+ */
+ const USER_FILE_EXT='.xml';
+
+ /**
* @var array list of users managed by this module
*/
private $_users=array();
@@ -278,7 +283,7 @@ class TUserManager extends TModule {
if($this->_initialized)
throw new TInvalidOperationException('usermanager_userfile_unchangeable');
- else if(($this->_userFile=Prado::getPathOfNamespace($value,self::DB_FILE_EXT))===null)
+ else if(($this->_userFile=Prado::getPathOfNamespace($value,self::USER_FILE_EXT))===null)
throw new TConfigurationException('usermanager_userfile_invalid',$value);
}
|