掲示板
override liferay email verification code
11年前 に devaraj s によって更新されました。
override liferay email verification code
Regular Member 投稿: 228 参加年月日: 12/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.
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.
11年前 に Mika Koivisto によって更新されました。
RE: override liferay email verification code
Liferay Legend 投稿: 1519 参加年月日: 06/08/07 最新の投稿
The email address verification is sent from UserLocalServiceImpl.sendEmailAddressVerification() method.
11年前 に Hitoshi Ozawa によって更新されました。
RE: override liferay email verification code
Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿
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
portal-service\src\com\liferay\portal\kernel\uuid\PortalUUIDUtil.java
11年前 に devaraj s によって更新されました。
RE: override liferay email verification code
Regular Member 投稿: 228 参加年月日: 12/05/21 最新の投稿
yes,
according to Mika Koivisto its generating verification key from userlocalserviceImpl.sendEmailAddressVerification,
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?
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?
11年前 に Hitoshi Ozawa によって更新されました。
RE: override liferay email verification code
Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿
Check the code to find which class the key is being generated!
11年前 に Mika Koivisto によって更新されました。
RE: override liferay email verification code
Liferay Legend 投稿: 1519 参加年月日: 06/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.