Skip to content

Commit

Permalink
Merge pull request joomla#11 from zero-24/patch-9
Browse files Browse the repository at this point in the history
fixes a bit codestyle for joomla#6692
  • Loading branch information
wilsonge committed Apr 7, 2015
2 parents 3de2f58 + ff308d0 commit f646006
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions plugins/authentication/gmail/gmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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');

Expand Down

0 comments on commit f646006

Please sign in to comment.