taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 70a9be3fca3963105e5365588aecfe4975cbaa7c
parent 946eecdea068fab31a05fa79560f05f1b136fc85
Author: Sebastian <sebasjm@taler-systems.com>
Date:   Wed,  4 Feb 2026 15:47:20 -0300

fix #10993: mf codes should not be saved in the browser

Diffstat:
Mpackages/merchant-backoffice-ui/src/components/SolveMFA.tsx | 1+
Mpackages/merchant-backoffice-ui/src/components/form/Input.tsx | 3+++
Mpackages/merchant-backoffice-ui/src/paths/newAccount/index.tsx | 8++++----
3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/packages/merchant-backoffice-ui/src/components/SolveMFA.tsx b/packages/merchant-backoffice-ui/src/components/SolveMFA.tsx @@ -159,6 +159,7 @@ function SolveChallenge({ name="code" focus={focus} readonly={showExpired} + dontRemember /> {expiration.t_ms === "never" ? undefined : ( <p> diff --git a/packages/merchant-backoffice-ui/src/components/form/Input.tsx b/packages/merchant-backoffice-ui/src/components/form/Input.tsx @@ -30,6 +30,7 @@ interface Props<T> extends InputProps<T> { side?: ComponentChildren; children?: ComponentChildren; focus?: boolean; + dontRemember?: boolean; } export function doAutoFocus<T extends HTMLElement>( @@ -72,6 +73,7 @@ export function Input<T>({ help, children, focus, + dontRemember, inputType, inputExtra, side, @@ -110,6 +112,7 @@ export function Input<T>({ {...inputExtra} inputType={inputType} placeholder={placeholder} + autocomplete={dontRemember ? "off" : undefined } readonly={readonly} disabled={readonly} name={String(name)} diff --git a/packages/merchant-backoffice-ui/src/paths/newAccount/index.tsx b/packages/merchant-backoffice-ui/src/paths/newAccount/index.tsx @@ -55,8 +55,8 @@ export interface Account { name: string; password: string; repeat: string; - email: string; - phone: string; + email: string | undefined; + phone: string | undefined; tos: boolean; } @@ -118,8 +118,8 @@ export function NewAccount({ onCancel, onCreated }: Props): VNode { name: next.name ?? "", password: next.password ?? "", repeat: next.repeat ?? "", - email: next.email ?? "", - phone: next.phone ?? "", + email: next.email, + phone: next.phone, tos: next.tos ?? false, }; setValue(v);