Fórumok

Cannot Login after installing a new instance of Liferay Portal

thumbnail
John Voltaire Maximo, módosítva 8 év-val korábban

Cannot Login after installing a new instance of Liferay Portal

Regular Member Bejegyzések: 106 Csatlakozás dátuma: 2015.06.19. Legújabb bejegyzések
Hi,

I cant seem to login to my account.. earlier I installed another instance into my computer.. then I switched back to my older liferay
but then I can't login anymore,, why is this?? and how can I fix it??

Thanks
thumbnail
Olaf Kock, módosítva 8 év-val korábban

RE: Cannot Login after installing a new instance of Liferay Portal

Liferay Legend Bejegyzések: 6403 Csatlakozás dátuma: 2008.09.23. Legújabb bejegyzések
Can you give some more hints on "I can't login any more"? Are there messages in the UI or in the log file? Do you refer to another instance with a separate host name (e.g. Liferay-vocabulary "instance") or another portal on the same server, where you start both servers on the same hostname at different times or ports? In the later case, you might be sharing cookies with each other - but different user ids. In the wild this rarely happens (e.g. hitting a different portal under the same address - in this case "localhost"). In Dev-Systems this might happen frequently. Try 127.0.0.1 instead, or clear all cookies and try again.
thumbnail
John Voltaire Maximo, módosítva 8 év-val korábban

RE: Cannot Login after installing a new instance of Liferay Portal

Regular Member Bejegyzések: 106 Csatlakozás dátuma: 2015.06.19. Legújabb bejegyzések
Thanks sir @Olaf Kock, this is what actually happened,

I installed a new instance on my pc,,,, I changed the database to SQLServer,
I copied the connection string from my old instance's portal-setup-wizard,,
I pasted it on the connection string when I changed the database for my new instance,,, but I FORGOT to change the database name before hitting finish.. (my mistake)
I cancelled it immediately and repeated the basic configuration until it worked....

Then I switched back to my old one because I still haven't finished some things there,,,,,
But I can't log in anymore, it doesn't recognize me ,, even the forgot password doesn't recognize me

I really think my old database has been overwritten somehow,, although I still see some of my old data there, I think some data has been overwritten..
any suggestions guys? please help.. thanks
thumbnail
Kartik Sharma, módosítva 8 év-val korábban

RE: Cannot Login after installing a new instance of Liferay Portal

Junior Member Bejegyzések: 44 Csatlakozás dátuma: 2009.11.03. Legújabb bejegyzések
There is a work around. Liferay uses SHA-1 one way hash to encrypt the password. So you have to change the password for your admin user in database I am giving you the hashed value and password. provided everything else is same(other tables are not impacted)
password = "Welcome@123" Hashed value = "r7oTczHQRQ2ftS33OCaEB+CllKQ= "
thumbnail
Olaf Kock, módosítva 8 év-val korábban

RE: Cannot Login after installing a new instance of Liferay Portal

Liferay Legend Bejegyzések: 6403 Csatlakozás dátuma: 2008.09.23. Legújabb bejegyzések
Kartik Sharma:
Liferay uses SHA-1 one way hash to encrypt the password.


As of 6.2 Liferay - by default - uses a hash which name always escapes me - it's a deliberately processing-hard, salted hash. However, you can always set the password to an unencrypted string and set the "isEncrypted" field in the same row to false.
thumbnail
John Voltaire Maximo, módosítva 8 év-val korábban

RE: Cannot Login after installing a new instance of Liferay Portal

Regular Member Bejegyzések: 106 Csatlakozás dátuma: 2015.06.19. Legújabb bejegyzések
Olaf Kock:
However, you can always set the password to an unencrypted string and set the "isEncrypted" field in the same row to false.


I already gained access my account again.. I reinstalled a new instance of liferay and started over again.
This one I'll do it right now ... thanks for the tip