From 74e563da7fa6886449fd2be5933e2d4ca5c85f48 Mon Sep 17 00:00:00 2001 From: jack <jack.su@pollex.com.tw> Date: 星期二, 12 九月 2023 11:25:52 +0800 Subject: [PATCH] [UPDATE] 解決弱點Se: Incorrect definition of Serializable class [UPDATE] 解決弱點Information exposure to log file [UPDATE] 解決弱點Use of hard-coded password --- PAMapp/middleware/isLogin.ts | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PAMapp/middleware/isLogin.ts b/PAMapp/middleware/isLogin.ts index 573dd86..dd1e2b6 100644 --- a/PAMapp/middleware/isLogin.ts +++ b/PAMapp/middleware/isLogin.ts @@ -5,7 +5,6 @@ const isAdminLogin = context.store.getters['localStorage/isAdminLogin']; const isGuest = !isUserLogin && !isAdminLogin; const currentRouteName = context.route.name; - console.log('currentRouteName=====>', currentRouteName); const noNeedLoginFunctionList = [ 'index', 'login', 'myConsultantList-consultantList', 'myConsultantList-contactedList', @@ -34,7 +33,8 @@ 'notification', 'agentInfo-agentNo', 'agentInfo-edit-agentNo', 'record', 'myAppointmentList-appointmentList', 'myAppointmentList-contactedList', 'myAppointmentList-closedList', 'appointment-appointmentId', 'appointment-appointmentId-close', - 'appointment-appointmentId-interview-new', 'appointment-appointmentId-interview-interviewId', + 'appointment-appointmentId-interview-new', 'appointment-appointmentId-interviewList', + 'appointment-appointmentId-interview-interviewId', 'appointment-appointmentId-recordList', ...noNeedLoginFunctionList]; const agentCannotAccess = !(agentFunctions.includes(currentRouteName!)); if (agentCannotAccess) { -- Gitblit v1.8.0