将用户密码从 Liferay 4.4.2 迁移到 Liferay 6.0.6

发布于 01-05 23:47 字数 300 浏览 3 评论 0原文

Liferay 4.4.2 中的一些用户当前处于活动状态,并且全部具有有效密码。 在 Liferay 6.0.6 中拥有相同的用户,所有用户都添加了默认密码。

您能建议一种将用户密码从 Liferay 4.4.2 迁移到 Liferay 6.0.6 的方法吗?

尝试通过用户表中的数据库直接复制密码(我知道不建议这样做,但我必须从某个地方开始)。 没有成功。

两个版本使用的加密算法都是MD5。编码摘要有区别吗? Liferay 4.4.2 中没有摘要栏,但在 Liferay 6.0.6 中可以看到摘要栏

如何迁移密码?

Have some users in Liferay 4.4.2 that are currently active, all having valid passwords.
Have the same users in Liferay 6.0.6, all of them added with a default password.

Can you suggest a way where I can migrate the passwords of users from Liferay 4.4.2 to Liferay 6.0.6?

Tried copying the passwords directy through DB in the users table (I know its not adviced, but I had to start somewhere).
Didn't work out.

The encryption algorithm used in both the versions is MD5. Is there a difference in the encoding digest?
There is no Digest Column in Liferay 4.4.2, but can see one in Liferay 6.0.6

How can I migrate the passwords?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

落墨2025-01-12 23:47:31

目前使用“忘记密码”功能来提示用户更改密码,我知道这很忙。我就是这样做的:

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);

欢迎任何更好的解决方案。

Currently using Forgot Password functionality to intimate the users to change their passwords which I know is hectic. This is how I did it:

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);

Any better solutions are welcome.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文