Version 4.7.6

This commit is contained in:
Neo committed 2025-12-19 16:05:19 -08:00
1 parent 8ba7d43898
commit 7b7404e741
1085 files changed
+30590 -7837

No files matched your search

+10 -1
View File
@@ -374,7 +374,16 @@ class _Google extends \IPS\Login\Handler\OAuth2
if ( isset( $response['error'] ) )
{
throw new \IPS\Login\Exception( $response['error']['errors'][0]['message'], \IPS\Login\Exception::INTERNAL_ERROR );
if ( isset( $response['error_description'] ) )
{
throw new \IPS\Login\Exception( $response['error_description'], \IPS\Login\Exception::INTERNAL_ERROR );
}
// Keeping this for backwards compatibility..
else if( isset( $response['error']['errors'][0]['message'] ) )
{
throw new \IPS\Login\Exception( $response['error']['errors'][0]['message'], \IPS\Login\Exception::INTERNAL_ERROR );
}
}
$this->_cachedUserData[ $accessToken ] = $response;