From 9346994df992f7cda70891330737224b30ddfd2b Mon Sep 17 00:00:00 2001 From: Mrunal Tupe <65716766+MRUNAL727@users.noreply.github.com> Date: Mon, 10 Oct 2022 20:20:44 +0530 Subject: [PATCH 1/4] verifyUser Reemoved next from line number 18 --- api/utils/verifyToken.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/utils/verifyToken.js b/api/utils/verifyToken.js index 57e3ee56ef..c61429fc63 100644 --- a/api/utils/verifyToken.js +++ b/api/utils/verifyToken.js @@ -15,7 +15,7 @@ export const verifyToken = (req, res, next) => { }; export const verifyUser = (req, res, next) => { - verifyToken(req, res, next, () => { + verifyToken(req, res, () => { if (req.user.id === req.params.id || req.user.isAdmin) { next(); } else { From 6c8e7724f2eccbb04b18f6c90da61db2052bb42b Mon Sep 17 00:00:00 2001 From: Mrunal Tupe <65716766+MRUNAL727@users.noreply.github.com> Date: Mon, 10 Oct 2022 20:21:42 +0530 Subject: [PATCH 2/4] verifyUser Removed next from line number 18 --- api/utils/verifyToken.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/utils/verifyToken.js b/api/utils/verifyToken.js index c61429fc63..98d59ea077 100644 --- a/api/utils/verifyToken.js +++ b/api/utils/verifyToken.js @@ -15,7 +15,7 @@ export const verifyToken = (req, res, next) => { }; export const verifyUser = (req, res, next) => { - verifyToken(req, res, () => { + verifyToken(req, res, () => { if (req.user.id === req.params.id || req.user.isAdmin) { next(); } else { From d75112f1952ccf6f721def94e977d7e54e70c958 Mon Sep 17 00:00:00 2001 From: Mrunal Tupe <65716766+MRUNAL727@users.noreply.github.com> Date: Fri, 14 Oct 2022 10:05:24 +0530 Subject: [PATCH 3/4] input --- client/src/pages/list/List.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/pages/list/List.jsx b/client/src/pages/list/List.jsx index c55aac5b9a..178b26e9c9 100644 --- a/client/src/pages/list/List.jsx +++ b/client/src/pages/list/List.jsx @@ -35,7 +35,7 @@ const List = () => {

Search

- + setDestination(event.target.value)}/>
From 9c28902cd7478a8847ad62bb9e93c80911768ffb Mon Sep 17 00:00:00 2001 From: Mrunal Tupe <65716766+MRUNAL727@users.noreply.github.com> Date: Fri, 14 Oct 2022 10:06:40 +0530 Subject: [PATCH 4/4] verifyAdmin --- api/utils/verifyToken.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/utils/verifyToken.js b/api/utils/verifyToken.js index 98d59ea077..706410c49b 100644 --- a/api/utils/verifyToken.js +++ b/api/utils/verifyToken.js @@ -25,7 +25,7 @@ export const verifyUser = (req, res, next) => { }; export const verifyAdmin = (req, res, next) => { - verifyToken(req, res, next, () => { + verifyToken(req, res, () => { if (req.user.isAdmin) { next(); } else {