# Email verification with code

**URL:** <https://forum.keycloak.org/t/email-verification-with-code/29115>\
**Category:** Configuring the server\
**Created:** [December 6, 2024, 4:08pm UTC](https://forum.keycloak.org/t/email-verification-with-code/29115 "2024-12-06T16:08:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lillme](https://avatars.discourse-cdn.com/v4/letter/l/f07891/32.png) [@Lillme](https://forum.keycloak.org/u/Lillme)\
**Post date:** [December 6, 2024, 4:08pm UTC](https://forum.keycloak.org/t/email-verification-with-code/29115/1 "2024-12-06T16:08:52Z")

</div>

Hey! I’m curious if it might be possible to enable email verification with a code directly from Keycloak’s configuration. I’ve already seen that it can be done using a link, but that’s not my requirement.

I’ve been checking Keycloak’s repository, and I see they reference what I’m looking for:

[email-verification-with-code.ftl](https://github.com/keycloak/keycloak/blob/main/themes/src/main/resources/theme/base/email/html/email-verification-with-code.ftl)

Or does this perhaps refer to a different functionality?

How can I enable it?

---

<div class="post-metadata">

**Author:** ![xgp](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/xgp/32/2589_2.png) [@xgp](https://forum.keycloak.org/u/xgp)\
**Post date:** [December 6, 2024, 4:25pm UTC](https://forum.keycloak.org/t/email-verification-with-code/29115/2 "2024-12-06T16:25:25Z")

</div>

Not sure what that template does, as I can’t find other references in the code. Unless that is some new/hidden functionality, I don’t believe it is used.

If you need to implement a similar thing, I have an extension that does [Email OTP](https://github.com/p2-inc/keycloak-magic-link?tab=readme-ov-file#email-otp) that you could probably use as a base.
