diff --git a/api/controllers/OauthController.php b/api/controllers/OauthController.php index a815116..a74d33e 100644 --- a/api/controllers/OauthController.php +++ b/api/controllers/OauthController.php @@ -126,7 +126,6 @@ class OauthController extends Controller { if (!$account->canAutoApprove($clientModel, $authParams['scopes'])) { $isAccept = Yii::$app->request->post('accept'); - $isAccept = null; if ($isAccept === null) { throw new AcceptRequiredException(); }