This website uses cookies to ensure you get the best experience. Learn More.
How to reset the password for a Liferay Portal user
If you need to reset the password for a Liferay Portal user in the database, refer to the following test steps.
These steps assume the following:
We are connecting to a MySQL database server.
User is stored in Liferay Portal database.
We are using default auth (not LDAP or SSO).
e.g.
select * from User_;
select userId, screenName from User_;
Scan rows/columns for user by name or email address.
Locate target entry by "userId" or "screenName".
We will assume the user ID for our user is "10178" and screen name is "test".
select * from User_ where userId='10178';
eg.
select * from User_ where screenName='test';
We will reset the password to default "test".
update User_ set password_='test', passwordEncrypted=0, passwordReset=0 where userId='10178';
update User_ set password_='test', passwordEncrypted=0, passwordReset=0 where screenName='test';
commit;
Clear portal caches.