Sending email for authentication

Hi, 

I wanted to send an email if the user forgets his password. How can I send the email with a link having a unique username?

Thanks & Regards,

Shivya Pant

Hi Shivya


You will need to implement your own ResetToken/PasswordReset system. There is, however, an excellent component that you can either use as an example, or even integrate into your application in the Forge. The component is: 

Password Reset Flow


Hope this helps!

   CLSJ

Hi Carlos,

Thank you for your response. Actually, I wanted to specifically send the link of the change password screen with the token of userid in the emails. If you can please guide how can I achieve this?


Thanks & Regards,

Shivya Pant

Solution

Hi Shiva


To dynamically generate a web screen's link you can use the HTTPRequestHandler's GetEntryURL. This function will generate the link yo screen based on your environment, eSpaceName, Screen name and parameters.

EG: 

  • youroutsystemsenv-dev.com/MyApp/PasswordResert?token=aaabbb111 in development
  • youroutsystemsenv.com/MyApp/PasswordResert?token=aaabbb111 in PROD

Hope this helps!

CLSJ


Solution