Fórum
override liferay email verification code
devaraj s, modificado 11 Anos atrás.
override liferay email verification code
Regular Member Postagens: 228 Data de Entrada: 21/05/12 Postagens Recentes
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.
Mika Koivisto, modificado 11 Anos atrás.
RE: override liferay email verification code
Liferay Legend Postagens: 1519 Data de Entrada: 07/08/06 Postagens Recentes
The email address verification is sent from UserLocalServiceImpl.sendEmailAddressVerification() method.
Hitoshi Ozawa, modificado 11 Anos atrás.
RE: override liferay email verification code
Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
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
devaraj s, modificado 11 Anos atrás.
RE: override liferay email verification code
Regular Member Postagens: 228 Data de Entrada: 21/05/12 Postagens Recentes
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?
Hitoshi Ozawa, modificado 11 Anos atrás.
RE: override liferay email verification code
Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Check the code to find which class the key is being generated!
Mika Koivisto, modificado 11 Anos atrás.
RE: override liferay email verification code
Liferay Legend Postagens: 1519 Data de Entrada: 07/08/06 Postagens Recentes
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.