Fix email unconfirmed login flow with OTP resend and update email API field names

This commit is contained in:
dwindown
2026-01-02 19:33:51 +07:00
parent 8f46c5cfd9
commit eee6339074
13 changed files with 668 additions and 65 deletions

View File

@@ -509,12 +509,12 @@ export function NotifikasiTab() {
// Send test email using send-email-v2
const { data, error } = await supabase.functions.invoke('send-email-v2', {
body: {
to: template.test_email,
recipient: template.test_email,
api_token: emailData.api_token,
from_name: emailData.from_name,
from_email: emailData.from_email,
subject: processedSubject,
html_body: fullHtml,
content: fullHtml,
},
});