# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- administrator/components/com_comprofiler/plugin.foundation.php +++ administrator/components/com_comprofiler/plugin.foundation.php @@ -1931,9 +1933,15 @@ $response->username = $username; $response->fullname = $row->name; // now we attempt user login and check results: - $login = $dispatcher->trigger( 'onLoginUser', array( (array) $response, array() ) ); + if ( checkJversion() == 2 ) { + $login = $dispatcher->trigger( 'onUserLogin', array( (array) $response, array( 'action' => 'core.login.site' ) ) ); + } else { + $login = $dispatcher->trigger( 'onLoginUser', array( (array) $response, array() ) ); + } if ( ! in_array( false, $login, true ) ) { $result = true; + } else { + $result = false; } } if ( $result ) {