在Liferay 4.4.2中有一些当前处于活动状态的用户,所有用户都有有效的密码。在Liferay 6.0.6中有相同的用户,所有用户都添加了默认密码。
你能推荐一种将用户密码从Liferay 4.4.2迁移到Liferay 6.0.6的方法吗?
尝试通过users表中的DB直接复制密码(我知道这并不可取,但我必须从某个地方开始)。没有成功。
两个版本中使用的加密算法都是MD5。编码摘要有区别吗?Liferay 4.4.2中没有摘要列,但在Liferay 6.0.6中可以看到一个摘要列
如何迁移密码?
发布于 2012-02-22 18:47:30
目前使用忘记密码功能来密切用户更改他们的密码,我知道这是忙碌的。我是这样做的:
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
Company company = themeDisplay.getCompany();
ServiceContext serviceContext = ServiceContextFactory.getInstance(PortalUtil.getHttpServletRequest(actionRequest));
//Replace the variables with corresponding values
UserLocalServiceUtil.sendPassword(companyId, emailAddress, remoteAddr, remoteHost, userAgent, fromName, fromAddress, subject, body, serviceContext);欢迎任何更好的解决方案。
https://stackoverflow.com/questions/9310291
复制相似问题