Forums

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

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Johan de jong
HELP !! Locked myself out of liferay 6.1 (Please enter your verification co
May 30, 2012 10:59 AM
Answer

Johan de jong

Rank: Junior Member

Posts: 41

Join Date: February 6, 2012

Recent Posts

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
May 30, 2012 11:13 AM
Answer

Johan de jong

Rank: Junior Member

Posts: 41

Join Date: February 6, 2012

Recent Posts

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
May 30, 2012 4:02 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

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
May 31, 2012 2:38 AM
Answer

Johan de jong

Rank: Junior Member

Posts: 41

Join Date: February 6, 2012

Recent Posts

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
May 31, 2012 2:15 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

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
June 1, 2012 1:17 AM
Answer

Johan de jong

Rank: Junior Member

Posts: 41

Join Date: February 6, 2012

Recent Posts

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.