Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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