Package org.g4studio.system.admin.service

Examples of org.g4studio.system.admin.service.UserService


   */
  public ActionForward updateUserInfo(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response) throws Exception {
    BaseActionForm cForm = (BaseActionForm)form;
    UserInfoVo userInfoVo = getSessionContainer(request).getUserInfo();
    UserService service = (UserService)getService("userService");
    Dto indDto = cForm.getParamAsDto(request);
    Dto outDto = new BaseDto(G4Constants.TRUE);
    outDto.put("flag", G4Constants.SUCCESS);
    String password = CodeUtil.encryptBase64(indDto.getAsString("password2"), G4Constants.BASE64_KEY);
    if (password.equals(userInfoVo.getPassword())) {
      service.updateUserItem4IndexPage(indDto);
      outDto.put("flag", G4Constants.SUCCESS);
      userInfoVo.setPassword(CodeUtil.encryptBase64(indDto.getAsString("password1"), G4Constants.BASE64_KEY));
      getSessionContainer(request).setUserInfo(userInfoVo);
    }else {
      outDto.setSuccess(G4Constants.FALSE);
View Full Code Here

TOP

Related Classes of org.g4studio.system.admin.service.UserService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.