phpBB

Code Changes

File: phpbb/auth/provider/oauth/service/bitly.php

  Unmodified   Added   Modified   Removed
Line 75Line 75
		catch (\OAuth\Common\Exception\Exception $e)
{
throw new exception('AUTH_PROVIDER_OAUTH_ERROR_REQUEST');

		catch (\OAuth\Common\Exception\Exception $e)
{
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 the unique identifier returned from bitly

Line 99Line 105
		catch (\OAuth\Common\Exception\Exception $e)
{
throw new exception('AUTH_PROVIDER_OAUTH_ERROR_REQUEST');

		catch (\OAuth\Common\Exception\Exception $e)
{
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 the unique identifier