Tribune

Home » Liferay Portal » English » 2. Using Liferay » General

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Johan de jong
HELP !! Locked myself out of liferay 6.1 (Please enter your verification co
30 maggio 2012 10.59
Risposta

Johan de jong

Punteggio: Junior Member

Messaggi: 35

Data di Iscrizione: 6 febbraio 2012

Messaggi recenti

I just locked my admin account within liferay 6.1.

The system is now requesting met to fill in the verification code, but since the system is on a closed LAN without a mailserver, the mail will never be sent.

Is there anyway to override the "verification code" inside the database or somewhere else?
Johan de jong
RE: HELP !! Locked myself out of liferay 6.1 (Please enter your verificatio
30 maggio 2012 11.13
Risposta

Johan de jong

Punteggio: Junior Member

Messaggi: 35

Data di Iscrizione: 6 febbraio 2012

Messaggi recenti

Ok, problem solved by myself already.

The workaround was:
1. shutdown Liferay
2. open database
3. go to PortalPreferences table.
If you have more than 1 domain active this wil get tricky emoticon
4. search for a row which starts with something like "<portlet-preferences><preference><name>company.security.strangers.verify</name><value>true</value>"
5. Mention the value="TRUE" after this, change ONLY this true to false
6 save the row

7. to be sure go to table User_
8. find your useraccount
9. at the end of the row there is a column "`agreedToTermsOfUse` and a column `emailAddressVerified` 1 or all of theses will contain 0 values
10. change these columns to 1
11. save it.
12 restart liferay.
Hitoshi Ozawa
RE: HELP !! Locked myself out of liferay 6.1 (Please enter your verificatio
30 maggio 2012 16.02
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7990

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

I'm not too sure how the changes you've made would actually unlock user account. When you said you've locked yourself out, was it from entering too many wrong password?
Johan de jong
RE: HELP !! Locked myself out of liferay 6.1 (Please enter your verificatio
31 maggio 2012 2.38
Risposta

Johan de jong

Punteggio: Junior Member

Messaggi: 35

Data di Iscrizione: 6 febbraio 2012

Messaggi recenti

I locked myself out because of the following reasons:

  1. the maildomain of the portal is different from my admin-account mailaddress
  2. i selected "Require strangers to verify their email address? "under "portal settings" - "authentication"
  3. when you have items 1 and 2 then you will be locked out a soon as you click the "save" button
  4. the portal will asume you are a "stranger" and you will need to verify your emailaddress


This is of course only true when the portal is not capable of emailing you the new verification string.
Hitoshi Ozawa
RE: HELP !! Locked myself out of liferay 6.1 (Please enter your verificatio
31 maggio 2012 14.15
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7990

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

If even the ominadmin is locked out, this is a bug. I'll have to check into it. Thanks for the information. :-)
Johan de jong
RE: HELP !! Locked myself out of liferay 6.1 (Please enter your verificatio
1 giugno 2012 1.17
Risposta

Johan de jong

Punteggio: Junior Member

Messaggi: 35

Data di Iscrizione: 6 febbraio 2012

Messaggi recenti

It is very easy to reproduce:

+ log in as administrator with your own emailaccount (like admin@liferay.com)
+ go to Portal Settings - General and change "Mail Domain" to test.com
+ go to Portal Settings - Authentication and enable "Require strangers to verify their email address? "
+ click save
+ the portal will start asking you for the verication code.