更改liferay默认用户'test@liferay.com'的密码



尝试使用http://blogs.aca-it.be/blogs/-/blogs/recovering-an-admin-password-in-liferay中记录的以下过程更改默认用户的Liferay密码。步骤如下:

1. Go to the user_ table in the database. 2. Find the user you want to gain access to. 3. Set the password_ field to some plain text password. 4. Set the passwordEncrypted field to 0. 5. Set the passwordReset field to 1. 6. Restart Liferay Log in.

根据以上步骤,执行如下命令修改密码。

mysql> update user_ set passwordEncrypted=0, password_='password', passwordReset=1 where userId=10196;

执行上述命令后,我启动了liferay,并尝试使用新密码以默认用户'test@liferay.com'登录,但身份验证仍然失败。

请建议。

使用sql:

修改密码为'test'
UPDATE User_ SET password_='qUqP5cyxm6YcTAhz05Hph5gvu9M=' WHERE emailAddress='test@liferay.com';

只是为liferay 7留下一个更新(当我在寻找解决方案时降落在这里)

UPDATE
    User_
SET
    password_ = 'PASSWORD_IN_CLEAR_TEXT',
    passwordEncrypted = 0,
    passwordReset = 1
WHERE
    userId = USER_ID
;

从:https://www.e-systems.tech/blog/-/blogs/liferay-7-how-to-reset-user-password-in-database

相关内容

最新更新