ensure client_id is specified in authorize post
This commit is contained in:
parent
c353c4fd39
commit
9d266f1dba
@ -197,6 +197,16 @@ router.post(
|
|||||||
// const { client_id, scope, response_type, redirect_url } = req.query;
|
// const { client_id, scope, response_type, redirect_url } = req.query;
|
||||||
const { client_id } = 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: captcha verification
|
||||||
// TODO: MFA verification
|
// TODO: MFA verification
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user