File: phpbb/auth/provider/oauth/oauth.php
Unmodified
Added
Modified
Removed
Line 163 | Line 163 |
---|
$provider = $this->request->variable('oauth_service', '', false); $service_name = $this->get_service_name($provider);
|
$provider = $this->request->variable('oauth_service', '', false); $service_name = $this->get_service_name($provider);
|
if ($provider === '' || !array_key_exists($service_name, $this->service_providers))
| if ($provider === '' || !$this->service_providers->offsetExists($service_name))
|
{ return [ 'status' => LOGIN_ERROR_EXTERNAL_AUTH,
| { return [ 'status' => LOGIN_ERROR_EXTERNAL_AUTH,
|
Line 411 | Line 411 |
---|
/** * {@inheritdoc} */
|
/** * {@inheritdoc} */
|
public function login_link_has_necessary_data($login_link_data)
| public function login_link_has_necessary_data(array $login_link_data)
|
{ if (empty($login_link_data)) {
| { if (empty($login_link_data)) {
|
Line 452 | Line 452 |
---|
$service_name = $this->get_service_name($link_data['oauth_service']);
|
$service_name = $this->get_service_name($link_data['oauth_service']);
|
if (!array_key_exists($service_name, $this->service_providers))
| if (!$this->service_providers->offsetExists($service_name))
|
{ return 'LOGIN_ERROR_OAUTH_SERVICE_DOES_NOT_EXIST'; }
| { return 'LOGIN_ERROR_OAUTH_SERVICE_DOES_NOT_EXIST'; }
|