mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-05 02:12:28 +01:00
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 } = 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user