Email verification template
-
Hi,
I've selected enter a short code to verify an email address but the email sent is the clickable link.
the copy in the email also is for the short code.
freemarker:
[#if verificationOneTimeCode??] <p class="code">${verificationOneTimeCode}</p> [#else] <p> <a href="${dashboardUrl}" >${dashboardUrl}</a > </p> [/#if]
anything we're mis-configuring?
-
-
Hiya @lambert-torres!
Form field email verification is a premium feature. Have you purchased and entered your license?
-
@dan yes, we have this on our production environment. are you saying we need a license for our staging environment as well?
-
@lambert-torres Any place you want to use premium features, you need to enter a license. However, for your staging environment, you can use the
non-production
version, which won't count MAU (and therefore won't count toward your cost).Here's more info: https://fusionauth.io/docs/v1/tech/admin-guide/licensing
-
@dan it looks like our staging instance is already licensed.
the server is in Development mode -
Ah, you'll need to modify the email template, then.
Here's an example template: https://fusionauth.io/docs/v1/tech/email-templates/templates-replacement-variables#email-verification
Make sure you update both the HTML and TXT versions of the template.
Let me know if that works.
-
@dan if you see above our freemarker is also similarly done. we've assigned the url for the link to dashboardurl for simplicity.
<h1>Verify your email</h1> <p>Use this temporary code to verify your email:</p> [#if verificationOneTimeCode??] <p class="code">${verificationOneTimeCode}</p> [#else] <p> <a href="${dashboardUrl}" >${dashboardUrl}</a > </p> [/#if]
-
@lambert-torres Hmmm.
Since you have a paid plan, I've escalated this to engineering support.
I'll follow up here with a resolution for future readers.
-
Dealing with email verification can be a real headache. Every site wants to double-check who you are these days.