尝试Liferay使用http://blogs.aca-it.be/blogs/-/blogs/recovering-an-admin-password-in-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'使用新密码使用默认用户登录,但是身份验证仍然失败。
请提示。
小智 7
使用sql将密码更改为' test ':
UPDATE User_ SET password_='qUqP5cyxm6YcTAhz05Hph5gvu9M=' WHERE emailAddress='test@liferay.com';
Run Code Online (Sandbox Code Playgroud)
只是为liferay 7保留更新(正如我在搜索解决方案时在此处着陆的那样)
UPDATE
User_
SET
password_ = 'PASSWORD_IN_CLEAR_TEXT',
passwordEncrypted = 0,
passwordReset = 1
WHERE
userId = USER_ID
;
Run Code Online (Sandbox Code Playgroud)
来自:https : //www.e-systems.tech/blog/-/blogs/liferay-7-how-to-reset-user-password-in-database
| 归档时间: |
|
| 查看次数: |
10200 次 |
| 最近记录: |