掲示板

Adminstrator password

14年前 に Neusa Bach によって更新されました。

Adminstrator password

New Member 投稿: 4 参加年月日: 09/09/25 最新の投稿
Hi!
I installed Liferay on a server and haven't used it for a while and now it does not accept the password I had created for the Administrator.
Is there a way to change the password saved or to create a new account for the Administrator?
thumbnail
14年前 に Zsolt Balogh によって更新されました。

RE: Adminstrator password

Expert 投稿: 463 参加年月日: 09/03/23 最新の投稿
Hi,

wait a sec (or an hour emoticon ) and I'll have a solution for you.

Do you have access to your liferay instance in filesystem? (=Can you deploy liferay plugins?)
thumbnail
14年前 に Amos Fong によって更新されました。

RE: Adminstrator password

Liferay Legend 投稿: 2047 参加年月日: 08/10/07 最新の投稿
if you have access to the database, I think this should work.

You could update the password for the user and set passwordencrypted to false
thumbnail
14年前 に Zsolt Balogh によって更新されました。

RE: Adminstrator password

Expert 投稿: 463 参加年月日: 09/03/23 最新の投稿
I had some time, so I wrote a hook plugin for this.

To change the password for your user, you need to do this:
  • Download the attached war file
  • Open it (it's a zip file)
  • Edit the password.changer.properties file in the WEB-INF/classes directory
  • Deploy the war file into the deploy directory of liferay (with tomcat it's deploy)
  • wait 10-20 seconds and try to log in with the new password
  • UNDEPLOY THE PLUGIN, or it will change the password next time you restart your liferay


Or you can just edit the database (User_ table) as Amos said...

(This plugin is written by me, not really tested, so you don't want to use this on a production site without backup).

The source code is in the war too.
14年前 に Neusa Bach によって更新されました。

RE: Adminstrator password

New Member 投稿: 4 参加年月日: 09/09/25 最新の投稿
Thanks!!!
I'll try both!
thumbnail
14年前 に Jonas Yuan によって更新されました。

RE: Adminstrator password

Liferay Master 投稿: 993 参加年月日: 07/04/27 最新の投稿
Hi Zsolt,

Very good plugin, it would be helpful ....

Thank you, Zsolt,

Jonas Yuan
9年前 に Juergen Troschke によって更新されました。

RE: Adminstrator password

New Member 投稿: 8 参加年月日: 13/05/15 最新の投稿
Hello! I try liferay-password-changer-5.2.3.1.war in Liferay 6.2.0ga2 and get:
Error registering hook for liferay-password-changer-5.2.3.1liferay-password-changer-5.2.3.1.
Is there a new version?
thumbnail
9年前 に Yogesh Sharma によって更新されました。

RE: Adminstrator password

Junior Member 投稿: 32 参加年月日: 12/03/07 最新の投稿
Quickest way I follow is using sql query on database.

This query might help you. This will reset password to 'test' for specific email address.

Execute it while your server is not running (of-course edit query with desired password and correct email address).

UPDATE user_ SET password_ = 'test', passwordEncrypted = FALSE WHERE emailAddress = 'test@liferay.com';
thumbnail
9年前 に Olaf Kock によって更新されました。

RE: Adminstrator password

Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿
You might be able to simply recompile: The posted WAR file contains the source code and the plugin is really simple. Create a new hook, stick the source and config-files in (maybe update the xml document types to current versions) and compile