From f8eaf926f2a2bc75343e005b966ec62b854147aa Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Thu, 22 Feb 2024 14:37:01 +0100 Subject: [PATCH] fix: template name typo for mfa challenge --- app/controllers/api/account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 58d9accf38..506983e127 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -3676,7 +3676,7 @@ App::post('/v1/account/mfa/challenge') $message = Template::fromFile(__DIR__ . '/../../config/locale/templates/sms-base.tpl'); - $customTemplate = $project->getAttribute('templates', [])['sms.mfa-challenge-' . $locale->default] ?? []; + $customTemplate = $project->getAttribute('templates', [])['sms.mfaChallenge-' . $locale->default] ?? []; if (!empty($customTemplate)) { $message = $customTemplate['message'] ?? $message; }