# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: Joomla root # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. --- administrator/components/com_comprofiler/library/cb/cb.authentication.php +++ administrator/components/com_comprofiler/library/cb/cb.authentication.php @@ -67,7 +67,7 @@ if ( ( ! $foundUser ) && ( $loginType > 2 ) ) { // If no result, try login by CMS authentication: if ( $_CB_framework->login( $username, $password, $rememberMe ) ) { - $foundUser = $row->loadByUsername( $username ); + $foundUser = $row->load( (int) $_CB_framework->myId() ); cbSplitSingleName( $row ); $row->confirmed = 1; $row->approved = 1;