diff --git a/src/main/java/com/tenlion/twoduty/controller/route/indexWebController.java b/src/main/java/com/tenlion/twoduty/controller/route/indexWebController.java index d6d9cfe..726fde7 100644 --- a/src/main/java/com/tenlion/twoduty/controller/route/indexWebController.java +++ b/src/main/java/com/tenlion/twoduty/controller/route/indexWebController.java @@ -30,7 +30,8 @@ public class indexWebController extends DefaultBaseController { @GetMapping("indexweb") public ModelAndView indexweb(){ ModelAndView mv = new ModelAndView("index"); - mv.addObject("userName",securityComponent.getCurrentUserIdInfo().getUserNameValue()); + mv.addObject("userName",securityComponent.getCurrentUser().getUserName()); + mv.addObject("userUserName",securityComponent.getCurrentUser().getUserUsername()); return mv; }