Version 4.7.6
This commit is contained in:
1 parent
8ba7d43898
commit
7b7404e741
1085 files changed
+30590
-7837
No files matched your search
@@ -444,7 +444,7 @@ class _Custom extends \IPS\Login\Handler\OAuth2
|
||||
}
|
||||
|
||||
/* Check for any errors */
|
||||
if ( static::getValueFromArray( $response, $this->settings['uid_field'] ) === NULL )
|
||||
if ( $response === NULL OR static::getValueFromArray( $response, $this->settings['uid_field'] ) === NULL )
|
||||
{
|
||||
\IPS\Log::log( print_r( $response, TRUE ), 'oauth_custom' );
|
||||
throw new \IPS\Login\Exception( 'generic_error', \IPS\Login\Exception::INTERNAL_ERROR );
|
||||
|
||||
Reference in new issue
Block a user