cancel
Showing results for 
Search instead for 
Did you mean: 

Add a parameter value from User Profile into the Reset Password link

ana_79
Explorer
0 Kudos

Hi..

I have a requirement to get the last landing page of a User and pass the same to the Reset Password so that the user can return back to the last landing page.
As a solution, we can store the last landing data in User Profile and add the details in the Reset Password Email.

Can we add the value of new parameter from the user profile to the reset password link?

Or any alternative suggestion to achieve it...

grohitg238
Explorer
0 Kudos

Hi Anindita,

If you are triggering email by Standard CDC mail service. You can add parameter at password reset link but you can add only those fields which are available as placeholder.

You can find placeholders at below link Email template placeholders

Thanks,

Rohit

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Anindita,

Unfortunately, the use-case you are describing cannot be achieved by adding a parameter to the email template.

Nevertheless, you can create a cookie or use the localStorage to store the path where the user is located when clicks in the "Forgot Password" link and then redirect there during the onLogin event.

Hope it helps,

BR

ana_79
Explorer

Hi Victor,

Thanks for your response.. I was trying to work with the Reset Page URL adding returnUrl as a parameter to redirect the user.

Since the IDP page can get the Reset Password Url parameters (returnUrl) and execute it onSubmit

The solution you suggested looks good to me... Let me check if it works...

Thanks... 🙂

But for my understanding ... Can we add the parameter value from the user profile into the Email Template or Page Url in Email Template?