Where to find ${resetpasswordlink} EL variable


#1

I am having trouble in finding the EL expressions to set few variables for password reset links
i dont want to hard code it, instead i want to assign value to ${resetpasswordlink} variable .

Under “customization” tab, i do not see any option. Can somebody give info on how can we reassign them to new value. i am looking in dev Okta Settings


#2

I think we dropped the ball on documentation. Good thing, there is an issue to have this added to the docs.

You’ll need to give a link that looks like this:

https://whatever.com/pathToPasswordReset?token=${recoveryToken}

#3

Thanks. In what email template this {recoveryToken} will go. I tried to put under “Forgot Password” Template, it throws error, saying “Missing ${code}”


#4

${code} is used for SMS, ${recoveryToken} is for email


#5


#6

I was able to update the resetPasswordLink by doing this. :point_up_2:
If you remove href=${resetPasswordLink} from the template, it’ll throw an error.
Instead add another href to your custom link below that and save the template.
Using this, I was able to get the updated custom link for reset password emails.


#7

Thanks @vijet. This is so helpful


#8

Something odd is going on here for sure, email templates shouldn’t be complaining about ${code}, I went ahead and forwarded this to the team that owns the email template. Thanks, and glad you got it working!


#9

Yeah! Seems like hack to me, but i need to get it done


#10

Ran into the same issue. @vijet’s hack applied. :slight_smile:

–Ray


#11

Customization Macros are documented here:
https://help.okta.com/en/prod/Content/Topics/Settings/Settings_Email.htm#customization-variables