# 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/controller/controller.default.php +++ /administrator/components/com_comprofiler/controller/controller.default.php @@ -1006,9 +1006,7 @@ if( isset( $ueConfig['emailpass'] ) && ( $ueConfig['emailpass'] == "1" ) && ( $row->approved == 0 ) ) { // if we need to generate a random password to be emailed with confirmation, set new random password only at first approval: $row->setRandomPassword(); - $pwd = $row->hashAndSaltPassword( $row->password ); - $_CB_database->setQuery( "UPDATE #__users SET password=" . $_CB_database->Quote( $pwd ) . " WHERE id = " . (int) $row->id ); - $_CB_database->query(); + $row->storePassword(); //createEmail($row, 'welcome', $ueConfig,null,1); } if ($row->approved == 0 && $approved == 1 && $row->confirmed == 1 ) { @@ -1023,8 +1021,8 @@ case 'block': case 'unblock': $_PLUGINS->trigger( 'onBeforeUserBlocking', array( $row, $actionValue ) ); - $_CB_database->setQuery( "UPDATE #__users SET block = " . (int) $actionValue . " WHERE id = " . (int) $row->id ); - if ($_CB_database->query()) { \ No newline at end of file + $row->block = $actionValue; + if ($row->storeBlock()) { \ No newline at end of file // if action is to block a user, delete user acounts active sessions if ( $actionValue == 1 ) { $query = "DELETE FROM #__session"