From 5ddee5081e2a9153dc44dd4ed6dae0f7e0d3bfe2 Mon Sep 17 00:00:00 2001 From: andwati Date: Wed, 23 Sep 2026 09:09:14 +0300 Subject: [PATCH] fix(console): save button text for Verify OTP Email message text The Console did not send the button text when saving the Verify OTP Email message text, so any custom value was dropped and the default "Authenticate" was used. Set it in both the organization and the instance default request builders, like for the other email message types. Closes #12799 --- .../modules/policies/message-texts/message-texts.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/console/src/app/modules/policies/message-texts/message-texts.component.ts b/console/src/app/modules/policies/message-texts/message-texts.component.ts index 97b23d154..41139144b 100644 --- a/console/src/app/modules/policies/message-texts/message-texts.component.ts +++ b/console/src/app/modules/policies/message-texts/message-texts.component.ts @@ -167,6 +167,7 @@ const REQUESTMAP = { getDefault: new GetDefaultVerifyEmailOTPMessageTextRequest(), setFcn: (map: Partial): SetCustomVerifyEmailOTPMessageTextRequest => { const req = new SetCustomVerifyEmailOTPMessageTextRequest(); + req.setButtonText(map.buttonText ?? ''); req.setFooterText(map.footerText ?? ''); req.setGreeting(map.greeting ?? ''); req.setPreHeader(map.preHeader ?? ''); @@ -332,6 +333,7 @@ const REQUESTMAP = { set: new SetDefaultVerifyEmailOTPMessageTextRequest(), setFcn: (map: Partial): SetDefaultVerifyEmailOTPMessageTextRequest => { const req = new SetDefaultVerifyEmailOTPMessageTextRequest(); + req.setButtonText(map.buttonText ?? ''); req.setFooterText(map.footerText ?? ''); req.setGreeting(map.greeting ?? ''); req.setPreHeader(map.preHeader ?? '');