Skip to content

Commit

Permalink
ensure client_id is specified in authorize post
Browse files Browse the repository at this point in the history
  • Loading branch information
Puyodead1 committed Dec 9, 2023
1 parent c353c4f commit 9d266f1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/api/routes/oauth2/authorize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,16 @@ router.post(
// const { client_id, scope, response_type, redirect_url } = req.query;
const { client_id } = req.query;

if (!client_id) {
throw FieldErrors({
client_id: {
code: "BASE_TYPE_REQUIRED",
message: req.t("common:field.BASE_TYPE_REQUIRED"),
},
});
}

// TODO: ensure guild_id is not an empty string
// TODO: captcha verification
// TODO: MFA verification

Expand Down

0 comments on commit 9d266f1

Please sign in to comment.