mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
Fix missing input validation
This commit is contained in:
parent
b7abdaa009
commit
b8f5ec7c1e
1 changed files with 3 additions and 1 deletions
|
@ -177,7 +177,9 @@ router.get(
|
||||||
|
|
||||||
// Telegram route
|
// Telegram route
|
||||||
router.get(
|
router.get(
|
||||||
'/get/telegram', query('chat').isString(),
|
'/get/telegram',
|
||||||
|
query('user').isString(),
|
||||||
|
query('chat').isString(),
|
||||||
async (req, res) => {
|
async (req, res) => {
|
||||||
if (!opts.claims.telegram.token) {
|
if (!opts.claims.telegram.token) {
|
||||||
return res.status(501).json({ errors: 'Telegram not enabled on server' })
|
return res.status(501).json({ errors: 'Telegram not enabled on server' })
|
||||||
|
|
Loading…
Reference in a new issue