From 22fa1e8d3961cc1e334b1eec802e41c5b5342806 Mon Sep 17 00:00:00 2001 From: Jibin Thomas Date: Mon, 13 Nov 2023 22:45:48 +0530 Subject: [PATCH] chore: update template string --- internal/utils/templates/init_config.test.toml | 2 +- internal/utils/templates/init_config.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/utils/templates/init_config.test.toml b/internal/utils/templates/init_config.test.toml index e15990d12..c04f118f3 100644 --- a/internal/utils/templates/init_config.test.toml +++ b/internal/utils/templates/init_config.test.toml @@ -100,7 +100,7 @@ enable_signup = true # If enabled, users need to confirm their phone number before signing in. enable_confirmations = false # Template for sending OTP to users -template = "Your code is {{ .Code }} ." +template = "Your code is {{ `{{.Code }}` }} ." # Use pre-defined map of phone number to OTP for testing. [auth.sms.test_otp] diff --git a/internal/utils/templates/init_config.toml b/internal/utils/templates/init_config.toml index 78333f95c..50ffc8b74 100644 --- a/internal/utils/templates/init_config.toml +++ b/internal/utils/templates/init_config.toml @@ -100,7 +100,7 @@ enable_signup = true # If enabled, users need to confirm their phone number before signing in. enable_confirmations = false # Template for sending OTP to users -template = "Your code is {{ .Code }} ." +template = "Your code is {{ `{{.Code }}` }} ." # Use pre-defined map of phone number to OTP for testing. [auth.sms.test_otp]