diff --git a/plugins/authentication/gmail/gmail.php b/plugins/authentication/gmail/gmail.php index 548aa9c4772fb..915d8b3fed705 100644 --- a/plugins/authentication/gmail/gmail.php +++ b/plugins/authentication/gmail/gmail.php @@ -43,9 +43,12 @@ public function onUserAuthenticate($credentials, $options, &$response) $success = false; $curlParams = array( - 'follow_location' => true, - 'transport.curl' => array(CURLOPT_SSL_VERIFYPEER => $this->params->get('verifypeer', 1)), + 'follow_location' => true, + 'transport.curl' => array( + CURLOPT_SSL_VERIFYPEER => $this->params->get('verifypeer', 1) + ), ); + $transportParams = new Registry($curlParams); try @@ -216,8 +219,8 @@ public function onUserAuthenticate($credentials, $options, &$response) } } elseif (JFactory::getApplication()->isAdmin()) - // We wont' allow backend access without local account { + // We wont' allow backend access without local account $response->status = JAuthentication::STATUS_FAILURE; $response->error_message = JText::_('JERROR_LOGIN_DENIED');