diff --git a/plugins/authentication/facebook/facebook.php b/plugins/authentication/facebook/facebook.php index 0804f81d6226c..4c870d890ffe6 100644 --- a/plugins/authentication/facebook/facebook.php +++ b/plugins/authentication/facebook/facebook.php @@ -284,11 +284,12 @@ protected function createUser($email, $name, $verified, $offset) throw new RuntimeException(JText::_('PLG_AUTHENTICATION_FACEBOOK_ERROR_LOCAL_USERNAME_CONFLICT')); } - $data = array( + $randomPassword = JUserHelper::genRandomPassword(32); + $data = array( 'name' => $name, 'username' => $this->deriveUsername($username), - 'password1' => JUserHelper::genRandomPassword(32), - 'password2' => JUserHelper::genRandomPassword(32), + 'password1' => $randomPassword, + 'password2' => $randomPassword, 'email1' => JStringPunycode::emailToPunycode($email), 'email2' => JStringPunycode::emailToPunycode($email), );