| | |
| | | return null; |
| | | } |
| | | |
| | | this.sysUser.setName(username); |
| | | // this.sysUser.setName(username); |
| | | this.sysUser.setPassword(MD5Utils.encode(this.newPassword)); |
| | | this.sysUserService.updateSysUser(sysUser); |
| | | this.newPassword = null; |
| | |
| | | this.newPasswordSecond = null; |
| | | FacesUtils.info("修改成功,请重新登录!"); |
| | | RequestContext.getCurrentInstance().execute("PF('dialogPassword').hide()"); |
| | | RequestContext.getCurrentInstance().execute("PF('changePassword').hide()"); |
| | | this.getSubject().logout(); |
| | | return Constants.PAGE_LOGIN + Constants.REDIRECT; |
| | | } |