Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.0.1
-
None
-
Operating System: RHEL 2.6.18-92.el5 #1 SMP x86_64 x86_64 x86_64 GNU/Linux
PHP Version: 5.1.6
Database and version: PostgreSQL 8.1.11
Browser (and version): n/a
Description
Tue Jan 13 14:42:43 CET 2009 lutz@iks-jena.de
- Fix documentation for eztextfileuser
--- old-ezpublish-4.0.1/kernel/classes/datatypes/ezuser/eztextfileuser.php +++ new-ezpublish-4.0.1/kernel/classes/datatypes/ezuser/eztextfileuser.php @@ -60,7 +60,7 @@ /*! \static Logs in the user if applied username and password is - valid. The userID is returned if succesful, false if not. + valid. The eZUser object is returned if succesful, false if not. */ static function loginUser( $login, $password, $authenticationMatch = false ) {
Mon Jan 12 17:56:10 CET 2009 lutz@iks-jena.de
- Bugfix ezTextFileUser (nodeID statt ObjectID)
--- old-ezpublish-4.0.1/kernel/classes/datatypes/ezuser/eztextfileuser.php +++ new-ezpublish-4.0.1/kernel/classes/datatypes/ezuser/eztextfileuser.php @@ -206,10 +206,7 @@ else if ( $UserGroupType == "id" ) { $groupID = $UserGroup; - $groupQuery = "SELECT ezcontentobject_tree.node_id - FROM ezcontentobject, ezcontentobject_tree - WHERE ezcontentobject.id='$groupID' - AND ezcontentobject.id=ezcontentobject_tree.contentobject_id"; + $groupQuery = "SELECT node_id FROM ezcontentobject_tree WHERE '$groupID'=node_id"; $groupObject = $db->arrayQuery( $groupQuery ); if ( count( $groupObject ) > 0 )
Fri Jan 9 23:35:39 CET 2009 lutz@iks-jena.de
- Bugfix eZLoginTextfile
-
- old-ezpublish-4.0.1/kernel/classes/datatypes/ezuser/eztextfileuser.php
+++ new-ezpublish-4.0.1/kernel/classes/datatypes/ezuser/eztextfileuser.php
@@ -251,7 +251,7 @@
if ( trim( $pass ) == $password )
{
$createNewUser = true;
- old-ezpublish-4.0.1/kernel/classes/datatypes/ezuser/eztextfileuser.php
-
- $existUser = $this->fetchByName( $login );
+ $existUser = eZUser::fetchByName( $login );
if ( $existUser != null )
{
$createNewUser = false;
@@ -290,7 +290,7 @@
$contentObjectAttributes[1]->setAttribute( 'data_text', $lastName );
$contentObjectAttributes[1]->store();
- $user = $this->create( $userID );
+ $user = eZUser::create( $userID );
$user->setAttribute( 'login', $login );
$user->setAttribute( 'email', $email );
$user->setAttribute( 'password_hash', "" );
</code>
Steps to reproduce
[UserSettings]
LoginHandler[]=textfile
...
Try to use ist.
Attachments
Issue Links
- is duplicated by
-
EZP-14713 static method eZTextFileUser::loginUser try to call pseudo-variable $this
- Closed