フォーラム

ホーム » Liferay Portal » English » 2. Using Liferay » General

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Johan de jong
HELP !! Locked myself out of liferay 6.1 (Please enter your verification co
2012/05/30 10:59
答え

Johan de jong

ランク: Junior Member

投稿: 41

参加年月日: 2012/02/06

最近の投稿

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
2012/05/30 11:13
答え

Johan de jong

ランク: Junior Member

投稿: 41

参加年月日: 2012/02/06

最近の投稿

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
2012/05/30 16:02
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7949

参加年月日: 2010/03/23

最近の投稿

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
2012/05/31 2:38
答え

Johan de jong

ランク: Junior Member

投稿: 41

参加年月日: 2012/02/06

最近の投稿

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
2012/05/31 14:15
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7949

参加年月日: 2010/03/23

最近の投稿

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
2012/06/01 1:17
答え

Johan de jong

ランク: Junior Member

投稿: 41

参加年月日: 2012/02/06

最近の投稿

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.