Skip to Content
author's profile photo Former Member
Former Member

How to set expiry date for the email link

I have a requirement to set the expiry date for the link that I send through the email. Please let me know how to set the expiry date.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 29, 2017 at 02:02 PM

    Hello Suresh,

    You can go and see /opt/hybris\bin\ext-commerce\commerceservices\resources\commerceservices-spring.xml

    In this you will see below snippet of code

     -<bean class="de.hybris.platform.commerceservices.customer.impl.DefaultCustomerAccountService" id="defaultCustomerAccountService">
     <property name="userService" ref="userService"/>
     <property name="paymentService" ref="paymentService"/>
     <property name="modelService" ref="modelService"/>
     <property name="flexibleSearchService" ref="flexibleSearchService"/>
     <property name="i18nService" ref="i18nService"/>
     <property name="passwordEncoderService" ref="passwordEncoderService"/>
     <property name="secureTokenService" ref="secureTokenService"/>
     <property name="tokenValiditySeconds" value="1800"/>
     <property name="customerAccountDao" ref="customerAccountDao"/>
     <property name="baseSiteService" ref="baseSiteService"/>
     <property name="baseStoreService" ref="baseStoreService"/>
     <property name="eventService" ref="eventService"/>
     <property name="commonI18NService" ref="commonI18NService"/>
     <property name="customerEmailResolutionService" ref="customerEmailResolutionService"/>
     <property name="passwordEncoding" value="#{configurationService.configuration.getProperty('default.password.encoding')}"/>
     <property name="typeService" ref="typeService"/>
     <property name="customerNameStrategy" ref="defaultCustomerNameStrategy"/>
     <property name="timeService" ref="timeService"/>
     <property name="monthsForOrderExpiry" value="#{configurationService.configuration.getProperty('guest.orderstatuspage.access.expiry.month')}"/>

    currently by default forgot password link is valid for 1800 seconds. if you want you can override this value.

    Hope this helps Vinay

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.