taler-typescript-core

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

commit 875428116ad2060bd7a3f79f8307615ec426a4d2
parent 78fa0849c06a6ab996419b49ca741f3a50f445f6
Author: Sebastian <sebasjm@taler-systems.com>
Date:   Thu, 11 Dec 2025 11:17:11 -0300

fix #10762

Diffstat:
Mpackages/merchant-backoffice-ui/src/paths/admin/create/CreatePage.tsx | 2+-
Mpackages/merchant-backoffice-ui/src/paths/admin/list/View.tsx | 2+-
Mpackages/merchant-backoffice-ui/src/paths/instance/accounts/create/CreatePage.tsx | 2+-
Mpackages/merchant-backoffice-ui/src/paths/instance/accounts/update/UpdatePage.tsx | 2+-
Mpackages/merchant-backoffice-ui/src/paths/instance/password/index.tsx | 4++--
Mpackages/merchant-backoffice-ui/src/paths/instance/update/DeletePage.tsx | 2+-
Mpackages/merchant-backoffice-ui/src/paths/instance/update/UpdatePage.tsx | 2+-
Mpackages/merchant-backoffice-ui/src/paths/login/index.tsx | 2+-
Mpackages/merchant-backoffice-ui/src/paths/newAccount/index.tsx | 4++--
Mpackages/merchant-backoffice-ui/src/paths/resetAccount/index.tsx | 2+-
10 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/packages/merchant-backoffice-ui/src/paths/admin/create/CreatePage.tsx b/packages/merchant-backoffice-ui/src/paths/admin/create/CreatePage.tsx @@ -193,7 +193,7 @@ export function CreatePage({ onConfirm, onBack, forceId }: Props): VNode { switch (fail.case) { case HttpStatusCode.Accepted: mfa.onChallengeRequired(fail.body); - return i18n.str`Second factor authentication required.`; + return undefined; case HttpStatusCode.Unauthorized: return i18n.str`Unauthorized.`; case HttpStatusCode.Conflict: diff --git a/packages/merchant-backoffice-ui/src/paths/admin/list/View.tsx b/packages/merchant-backoffice-ui/src/paths/admin/list/View.tsx @@ -97,7 +97,7 @@ export function View({ fail.body, deleteAction.lambda((ids: string[]) => [t, i, p, ids]), ); - return i18n.str`Second factor authentication required.`; + return undefined; case HttpStatusCode.Unauthorized: return i18n.str`Unauthorized.`; case HttpStatusCode.NotFound: diff --git a/packages/merchant-backoffice-ui/src/paths/instance/accounts/create/CreatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/accounts/create/CreatePage.tsx @@ -162,7 +162,7 @@ export function CreatePage({ onCreated, onBack }: Props): VNode { switch (fail.case) { case HttpStatusCode.Accepted: mfa.onChallengeRequired(fail.body); - return i18n.str`Second factor authentication required.`; + return undefined; case HttpStatusCode.Unauthorized: return i18n.str`Unauthorized.`; case HttpStatusCode.NotFound: diff --git a/packages/merchant-backoffice-ui/src/paths/instance/accounts/update/UpdatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/accounts/update/UpdatePage.tsx @@ -225,7 +225,7 @@ export function UpdatePage({ account, onUpdated, onBack }: Props): VNode { switch (fail.case) { case HttpStatusCode.Accepted: mfa.onChallengeRequired(fail.body); - return i18n.str`Second factor authentication required.`; + return undefined; case HttpStatusCode.Unauthorized: return i18n.str`Unauthorized`; case HttpStatusCode.NotFound: diff --git a/packages/merchant-backoffice-ui/src/paths/instance/password/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/password/index.tsx @@ -92,7 +92,7 @@ export default function PasswordPage({ onCancel, onChange }: Props): VNode { switch (fail.case) { case HttpStatusCode.Accepted: mfa.onChallengeRequired(fail.body); - return i18n.str`Second factor authentication required.`; + return undefined; case HttpStatusCode.Unauthorized: return i18n.str`Unauthorized.`; case HttpStatusCode.NotFound: @@ -182,7 +182,7 @@ export function AdminPassword({ switch (fail.case) { case HttpStatusCode.Accepted: mfa.onChallengeRequired(fail.body); - return i18n.str`Second factor authentication required.`; + return undefined; case HttpStatusCode.Unauthorized: return i18n.str`Unauthorized.`; case HttpStatusCode.NotFound: diff --git a/packages/merchant-backoffice-ui/src/paths/instance/update/DeletePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/update/DeletePage.tsx @@ -89,7 +89,7 @@ export function DeletePage({ instanceId, onBack, onDeleted }: Props): VNode { fail.body, remove.lambda((ids: string[]) => [t, p, ids]), ); - return i18n.str`Second factor authentication required.`; + return undefined; case HttpStatusCode.Unauthorized: return i18n.str`Unauthorized.`; case HttpStatusCode.NotFound: diff --git a/packages/merchant-backoffice-ui/src/paths/instance/update/UpdatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/update/UpdatePage.tsx @@ -158,7 +158,7 @@ export function UpdatePage({ switch (fail.case) { case HttpStatusCode.Accepted: mfa.onChallengeRequired(fail.body); - return i18n.str`Second factor authentication required.`; + return undefined; case HttpStatusCode.Unauthorized: return i18n.str`Unauthorized.`; case HttpStatusCode.NotFound: diff --git a/packages/merchant-backoffice-ui/src/paths/login/index.tsx b/packages/merchant-backoffice-ui/src/paths/login/index.tsx @@ -91,7 +91,7 @@ export function LoginPage({ showCreateAccount }: Props): VNode { switch (fail.case) { case HttpStatusCode.Accepted: mfa.onChallengeRequired(fail.body); - return i18n.str`Second factor authorization required.`; + return undefined; case HttpStatusCode.Unauthorized: return i18n.str`Unauthorized`; case HttpStatusCode.NotFound: diff --git a/packages/merchant-backoffice-ui/src/paths/newAccount/index.tsx b/packages/merchant-backoffice-ui/src/paths/newAccount/index.tsx @@ -165,11 +165,11 @@ export function NewAccount({ onCancel, onCreated }: Props): VNode { switch (fail.case) { case HttpStatusCode.Accepted: mfa.onChallengeRequired(fail.body); - return i18n.str`Second factor authentication required.`; + return undefined;//i18n.str`Second factor authentication required.`; case HttpStatusCode.Unauthorized: return i18n.str`Unauthorized`; case HttpStatusCode.Conflict: - return i18n.str`Conflict`; + return i18n.str`There is another instance with this username.`; } }; const retry = create.lambda((ids: string[]) => [create.args![0], ids]); diff --git a/packages/merchant-backoffice-ui/src/paths/resetAccount/index.tsx b/packages/merchant-backoffice-ui/src/paths/resetAccount/index.tsx @@ -112,7 +112,7 @@ export function ResetAccount({ switch (fail.case) { case HttpStatusCode.Accepted: mfa.onChallengeRequired(fail.body); - return i18n.str`Second factor authentication required.`; + return undefined; case HttpStatusCode.Unauthorized: return i18n.str`Unauthorized.`; case HttpStatusCode.Forbidden: