X-Git-Url: https://git-public.kairo.at/?p=authserver.git;a=blobdiff_plain;f=app%2Fapi.php;h=10d43edd0d1461cb9119f1b08616642e245124b5;hp=4cdbe24e2416d0be92d516b197dd0425ad4abdc0;hb=3875e0fb8b2b31d82809bd20880f1d206db4cb2c;hpb=426f76b2a5fa23ffba2f9ebf70ea8a384e733d23 diff --git a/app/api.php b/app/api.php index 4cdbe24..10d43ed 100644 --- a/app/api.php +++ b/app/api.php @@ -67,7 +67,7 @@ if (!count($errors)) { 'error_description' => 'The user the access token is connected to was not recognized.'))); } else { - if (in_array($user['email'], $utils->client_reg_email_whitelist)) { + if (($utils->client_reg_email_whitelist === false) || (in_array($user['email'], $utils->client_reg_email_whitelist))) { if (strlen(@$_GET['client_id']) >= 5) { $result = $db->prepare('SELECT `client_id`,`user_id` FROM `oauth_clients` WHERE `client_id` = :clientid;'); $result->execute(array(':clientid' => $_GET['client_id']));