Commit fd257f5f authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

remove console.log from middleware'

parent 3f7c1838
......@@ -11,7 +11,6 @@ export const JwtAdminMiddleware = (req, res, next) => {
const { token } = req.headers;
if (!token) throw 403;
let verify = JwtCheck(token);
console.log(verify.data);
if (!verify.data.rank) throw 403;
next();
} catch (err) {
......@@ -27,7 +26,6 @@ export const JwtUserMiddleware = (req, res, next) => {
const { token } = req.headers;
if (!token) throw 403;
let verify = JwtCheck(token);
console.log(verify.data);
req.user = verify.data;
next();
} catch (err) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment