+ Start a Discussion
tarun.khandelwal1.3965028573349685E12tarun.khandelwal1.3965028573349685E12 

Retrieve Activation Link From Apex Code After Resetting Password.

Hello All,

I need to customize the Welcome Mail, Currently I get 2 mails, one Welcome and Other With New Password.

But i want only single mail for both, so i am thinking to reset the password and send the activation link using new email template.
I am able to retrieve the new temp password from system.resetPassword().
But i need to the activation link, so user will land directly on change password page and he don't have to enter the temp password.

Ashish_SFDCAshish_SFDC
Hi Tarun, 


That is a Standard procedure and cannot be customized. 

Submit this as a feature request in Ideas : https://success.salesforce.com/ideaPost


Regards,
Ashish

tarun.khandelwal1.3965028573349685E12tarun.khandelwal1.3965028573349685E12
Hello Ashish,

So according to you i cannot get activation link after calling resetPassword??
Ashish_SFDCAshish_SFDC
Hi Tarun, 


I tried researching a bit and i did not find anything on this. 

This is a secure automated process that works internally for Salesforce Users to have secure login etc and I do not think this can be customized. 

There is one article but this is not for general user reset / activation but you may have a look, 

Creating a custom Change password page using force.com sites and solving issues with dreaded Site.Login and Change password..

http://betterapexprogramming.com/?p=50


Regards,
Ashish