diff --git a/oauth/authorize.php b/oauth/authorize.php index 717ee14..6de485c 100644 --- a/oauth/authorize.php +++ b/oauth/authorize.php @@ -90,11 +90,6 @@ else { // Check if user has authorized to share his data with the client $is_authorized = ($_POST['authorized'] === 'Authorize'); } -else { - // Print the authorization code if the user has authorized your client - $is_authorized = ($_POST['authorized'] === 'Authorize'); - $server->handleAuthorizeRequest($request, $response, $is_authorized, $_SESSION['uid']); -} // Print the authorization code if the user has authorized your client $server->handleAuthorizeRequest($request, $response, $is_authorized,$_SESSION['uid']);