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

时间:2014-08-12 10:50:42

标签: mysql liferay-6

尝试使用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'登录,但身份验证仍然失败。

请建议。

2 个答案:

答案 0 :(得分:6)

使用sql:

将密码更改为“测试
UPDATE User_ SET password_='qUqP5cyxm6YcTAhz05Hph5gvu9M=' WHERE emailAddress='test@liferay.com';

答案 1 :(得分:5)

只留下liferay 7的更新(因为我在搜索解决方案时登陆这里)

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

来自:here