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) => { ...@@ -11,7 +11,6 @@ export const JwtAdminMiddleware = (req, res, next) => {
const { token } = req.headers; const { token } = req.headers;
if (!token) throw 403; if (!token) throw 403;
let verify = JwtCheck(token); let verify = JwtCheck(token);
console.log(verify.data);
if (!verify.data.rank) throw 403; if (!verify.data.rank) throw 403;
next(); next();
} catch (err) { } catch (err) {
...@@ -27,7 +26,6 @@ export const JwtUserMiddleware = (req, res, next) => { ...@@ -27,7 +26,6 @@ export const JwtUserMiddleware = (req, res, next) => {
const { token } = req.headers; const { token } = req.headers;
if (!token) throw 403; if (!token) throw 403;
let verify = JwtCheck(token); let verify = JwtCheck(token);
console.log(verify.data);
req.user = verify.data; req.user = verify.data;
next(); next();
} catch (err) { } 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