-- ============================================================================ -- Fix Auth OTP Email Template - Content Only (for master template wrapper) -- ============================================================================ -- Update auth_email_verification template to be content-only -- This will be wrapped by EmailTemplateRenderer with master template UPDATE notification_templates SET email_subject = 'Kode Verifikasi Email Anda - {platform_name}', email_body_html = '---

🔐 Verifikasi Email

Halo {nama}, terima kasih telah mendaftar di {platform_name}! Gunakan kode OTP berikut untuk memverifikasi alamat email Anda:

{otp_code}

Kode ini akan kedaluwarsa dalam {expiry_minutes} menit.

Cara menggunakan:

  1. Salin kode 6 digit di atas
  2. Kembali ke halaman pendaftaran
  3. Masukkan kode tersebut pada form verifikasi
Info: Jika Anda tidak merasa mendaftar di {platform_name}, abaikan email ini dengan aman.
---' WHERE key = 'auth_email_verification'; -- Add comment documenting the change COMMENT ON COLUMN notification_templates.email_body_html IS 'For templates wrapped with master template: Store ONLY content HTML (no , , tags). Use {variable} placeholders for dynamic data. Content will be auto-styled by .tiptap-content CSS.'; -- Return success message DO $$ BEGIN RAISE NOTICE 'Auth email template updated to content-only format for master template wrapper'; END $$;