# OTP in Registration - Activation email

**URL:** <https://devforum.okta.com/t/otp-in-registration-activation-email/35335>\
**Category:** Questions\
**Created:** [June 24, 2026, 8:41pm UTC](https://devforum.okta.com/t/otp-in-registration-activation-email/35335 "2026-06-24T20:41:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![iling\_exiger](https://avatars.discourse-cdn.com/v4/letter/i/dbc845/32.png) [@iling\_exiger](https://devforum.okta.com/u/iling_exiger)\
**Post date:** [June 24, 2026, 8:41pm UTC](https://devforum.okta.com/t/otp-in-registration-activation-email/35335/1 "2026-06-24T20:41:34Z")

</div>

> **[Okta Support Center (Lightning)](https://support.okta.com/help/s/article/magic-link-email-does-not-contain-one-time-password?language=en_US)**

This article seems to indicate that the `${oneTimePassword}` variable is usable in the Registration - Activation email template. However, when I tried to use that variable, it does not render a value and simply remains `${oneTimePassword}` in the email.

Is there a way to switch from magic links to e.g. a 6-digit OTP in the email? We are having issues with things like Microsoft Safe Links automatically accessing the magic link and inadvertently activating the user.

---

<div class="post-metadata">

**Author:** ![ashutosh.sahu](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@ashutosh.sahu](https://devforum.okta.com/u/ashutosh.sahu)\
**Post date:** [June 29, 2026, 8:29am UTC](https://devforum.okta.com/t/otp-in-registration-activation-email/35335/2 "2026-06-29T08:29:27Z")

</div>

Hi,

Could you please confirm if you are self-registering user in the Okta using the Sign-Up option and confirm the email template where you are trying to use ${oneTimePassword} variable?

Thanks,

Ashutosh

---

<div class="post-metadata">

**Author:** ![iling\_exiger](https://avatars.discourse-cdn.com/v4/letter/i/dbc845/32.png) [@iling\_exiger](https://devforum.okta.com/u/iling_exiger)\
**Post date:** [June 29, 2026, 8:55pm UTC](https://devforum.okta.com/t/otp-in-registration-activation-email/35335/3 "2026-06-29T20:55:36Z")

</div>

Yes, this is self-registration and the email template is `Registration - Activation`

---

<div class="post-metadata">

**Author:** ![ashutosh.sahu](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@ashutosh.sahu](https://devforum.okta.com/u/ashutosh.sahu)\
**Post date:** [July 2, 2026, 4:20am UTC](https://devforum.okta.com/t/otp-in-registration-activation-email/35335/4 "2026-07-02T04:20:05Z")

</div>

Can you please [open a support case](https://support.okta.com/help/s/article/How-to-Create-a-Support-Case?language=en_US) to get further assistance ?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [August 1, 2026, 4:20am UTC](https://devforum.okta.com/t/otp-in-registration-activation-email/35335/5 "2026-08-01T04:20:16Z")

</div>

Closed on August 1, 2026, 4:20am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
