1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-05 10:22:31 +01:00

ensure client_id is specified in authorize post

This commit is contained in:
Puyodead1 2023-12-09 13:39:40 -05:00
parent c353c4fd39
commit 9d266f1dba
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC

View File

@ -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