構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
devaraj s
override liferay email verification code
2013/02/21 22:11
答え

devaraj s

ランク: Regular Member

投稿: 206

参加年月日: 2012/05/21

最近の投稿

Hi,
while user creation liferay will send a email notification, with email verification code. Verification code is painful so i need to send my custom verification code to user email address.

I dont know from where liferay genertaing email-verification-code., please can one help me where i can control this verification code.
Mika Koivisto
RE: override liferay email verification code
2013/02/25 10:53
答え

Mika Koivisto

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1503

参加年月日: 2006/08/07

最近の投稿

The email address verification is sent from UserLocalServiceImpl.sendEmailAddressVerification() method.
Hitoshi Ozawa
RE: override liferay email verification code
2013/02/25 14:13
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7952

参加年月日: 2010/03/23

最近の投稿

I t hink you're actually looking for the class below which is used to generate the keys. It's also in portal-service instead of portal-impl
portal-service\src\com\liferay\portal\kernel\uuid\PortalUUIDUtil.java
devaraj s
RE: override liferay email verification code
2013/02/25 23:44
答え

devaraj s

ランク: Regular Member

投稿: 206

参加年月日: 2012/05/21

最近の投稿

yes,
according to Mika Koivisto its generating verification key from userlocalserviceImpl.sendEmailAddressVerification,

Ticket ticket = ticketLocalService.addTicket(
user.getCompanyId(), User.class.getName(), user.getUserId(),
TicketConstants.TYPE_EMAIL_ADDRESS, emailAddress, null,
serviceContext);


actually from above code its generating verification key like, 62e8a564-d164-4eb8-b950-88e014d77f49

my exact requirement is, I need to reduce the length of verification key, I mean i need only 4 character it should generate. how i can achieve this one?
Hitoshi Ozawa
RE: override liferay email verification code
2013/02/26 4:44
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7952

参加年月日: 2010/03/23

最近の投稿

Check the code to find which class the key is being generated!
Mika Koivisto
RE: override liferay email verification code
2013/02/26 9:09
答え

Mika Koivisto

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1503

参加年月日: 2006/08/07

最近の投稿

Ah, I understood that you want to know where the email is generated. The key is generated in TicketLocalServiceImpl. When changing it you should bear in mind that the key must be unique.