diff --git a/iTrust/WebRoot/header.jsp b/iTrust/WebRoot/header.jsp index 8bf250253828cf6a1c9f324288929728e7471e82..b0cd9cc040b102f918810ae8473b1175c648b849 100644 --- a/iTrust/WebRoot/header.jsp +++ b/iTrust/WebRoot/header.jsp @@ -115,6 +115,9 @@ { if (userRole.equals("patient")) { %><%@include file="/auth/patient/menu.jsp"%> + <% + } else if (userRole.equals("preRegisteredPatient")) { + %><%@include file="/auth/preRegisteredPatient/menu.jsp"%> <% } else if (userRole.equals("uap")) { %><%@include file="/auth/uap/menu.jsp"%> diff --git a/iTrust/src/edu/ncsu/csc/itrust/dao/mysql/AuthDAO.java b/iTrust/src/edu/ncsu/csc/itrust/dao/mysql/AuthDAO.java index ee8d5e022ed3c6058e8df940b2131c2982b2b5be..dccc46fe8141d8b066d365f264449675e0083164 100644 --- a/iTrust/src/edu/ncsu/csc/itrust/dao/mysql/AuthDAO.java +++ b/iTrust/src/edu/ncsu/csc/itrust/dao/mysql/AuthDAO.java @@ -134,7 +134,8 @@ public class AuthDAO { case ER: case LT: uName = factory.getPersonnelDAO().getName(mid); - break; + break; + case PREREGISTEREDPATIENT: case PATIENT: uName = factory.getPatientDAO().getName(mid); break;