RE: Welcome email with a link instead of the password

Dennis Schilakowski, modified 7 Years ago. New Member Posts: 15 Join Date: 2/15/19 Recent Posts
Hello everybody,

after the user has registered he receives a welcome e-mail from the system with a generated start password. Normal Liferay behavior.

But I'm looking for the following solution:

The welcome e-mail contains instead of the generated start password, a URL that automatically logs in, so that he can change his password.

Is there already a solution here or maybe a hint for me?
I'm using Liferay CE 7.1 

Thank you and best regards!
thumbnail
Fernando Fernandez, modified 7 Years ago. Expert Posts: 401 Join Date: 8/22/07 Recent Posts
Hi Dennis ,

You can change the email template that is used by going into:

Control Panel / Confuguration / Instance Settings / Configuration / Email Notifications

HTH

​​​​​​​Fernando
Amos Fong, modified 7 Years ago. New Member Posts: 15 Join Date: 2/15/19 Recent Posts
Hi Fernando,

thanks for your response.
I already know the section for editing the e-mail template, but unfortunately the item "Account Created Notifiction" does not produce an option like "[$ EMAIL_VERIFICATION_URL $]".

Default:
​​​​​​​Dear [$TO_NAME$],

Welcome! You recently created an account at [$PORTAL_URL$]. Your password is [$USER_PASSWORD$]. Enjoy!

Sincerely,
[$FROM_NAME$]
[$FROM_ADDRESS$]
[$PORTAL_URL$]

Idea:
Welcome [$TO_NAME$],

Your access has been approved!
Please click on the following URL to complete the registration:
<generated url>

Sincerely,
[$FROM_NAME$]
[$FROM_ADDRESS$]
[$PORTAL_URL$]</generated>

If the user visits the URL, he can immediately enter a new password.


Regards,
Dennis
thumbnail
Fernando Fernandez, modified 7 Years ago. Expert Posts: 401 Join Date: 8/22/07 Recent Posts
Hi Dennis,

Sorry, I have no suggestions with OOTB features. If you really need that behaviour, custom portlets can do the trick. 

But I understand it's probably not what you're after...

Fernando