From dcb19c3f80203b9bc4e3f65485e255da87f85164 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Fri, 2 Aug 2024 13:32:54 +0900 Subject: [PATCH] Update account.php --- app/controllers/api/account.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 2a251fbda6..7bd33dc8ca 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -3717,7 +3717,7 @@ App::put('/v1/account/mfa/authenticators/:type') $body ->setParam('{{buttonText}}', $locale->getText("emails.mfaCreated.buttonText")) - ->setParam('{{redirect}}', App::getEnv('_APP_DOMAIN') . '/console/account') + ->setParam('{{redirect}}', 'http://' . App::getEnv('_APP_DOMAIN') . '/console/account') ->setParam('{{body}}', $locale->getText("emails.mfaCreated.body"), escapeHtml: false) ->setParam('{{project}}', $project->getAttribute('name')) ->setParam('{{user}}', $user->getAttribute('name')); @@ -3986,7 +3986,7 @@ App::delete('/v1/account/mfa/authenticators/:type') $body ->setParam('{{buttonText}}', $locale->getText("emails.mfaRemoved.buttonText")) - ->setParam('{{redirect}}', App::getEnv('_APP_DOMAIN') . '/console/account') + ->setParam('{{redirect}}', 'http://' . App::getEnv('_APP_DOMAIN') . '/console/account') ->setParam('{{body}}', $locale->getText("emails.mfaRemoved.body"), escapeHtml: false) ->setParam('{{project}}', $project->getAttribute('name')) ->setParam('{{user}}', $user->getAttribute('name'));