1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

Merge branch '3.3.x'

This commit is contained in:
Máté Bartus
2021-01-26 18:43:02 +01:00
2 changed files with 13 additions and 0 deletions

View File

@@ -77,6 +77,12 @@ class bitly extends base
throw new exception('AUTH_PROVIDER_OAUTH_ERROR_REQUEST');
}
// Prevent SQL error
if (!isset($result['data']['login']))
{
throw new exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR');
}
// Return the unique identifier returned from bitly
return $result['data']['login'];
}
@@ -101,6 +107,12 @@ class bitly extends base
throw new exception('AUTH_PROVIDER_OAUTH_ERROR_REQUEST');
}
// Prevent SQL error
if (!isset($result['data']['login']))
{
throw new exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR');
}
// Return the unique identifier
return $result['data']['login'];
}