[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: removing repeat password fiel
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: removing repeat password field in the registration form |
Date: |
Thu, 27 Oct 2022 20:24:34 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 06ac43b89 removing repeat password field in the registration form
06ac43b89 is described below
commit 06ac43b8920fe3154a5c24a18711c9afb2ce9964
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Thu Oct 27 15:24:27 2022 -0300
removing repeat password field in the registration form
---
packages/demobank-ui/src/pages/home/index.tsx | 35 +++++++++++++++++----------
1 file changed, 22 insertions(+), 13 deletions(-)
diff --git a/packages/demobank-ui/src/pages/home/index.tsx
b/packages/demobank-ui/src/pages/home/index.tsx
index ae4051b9b..55653a860 100644
--- a/packages/demobank-ui/src/pages/home/index.tsx
+++ b/packages/demobank-ui/src/pages/home/index.tsx
@@ -586,7 +586,7 @@ async function abortWithdrawalCall(
error: {
title: `Withdrawal abortion failed.`,
description: response.error.description,
- debug: JSON.stringify(res.status),
+ debug: JSON.stringify(response),
},
}));
return;
@@ -676,6 +676,7 @@ async function confirmWithdrawalCall(
return;
}
if (!res || !res.ok) {
+ const response = await res.json();
// assume not ok if res is null
console.log(
`Withdrawal confirmation gave response error (${res.status})`,
@@ -686,7 +687,7 @@ async function confirmWithdrawalCall(
hasError: true,
error: {
title: `Withdrawal confirmation gave response error`,
- debug: JSON.stringify(res.status),
+ debug: JSON.stringify(response),
},
}));
return;
@@ -822,7 +823,7 @@ async function createWithdrawalCall(
return;
}
if (!res.ok) {
- const response = await res.text();
+ const response = await res.json();
console.log(
`Withdrawal creation gave response error: ${response} (${res.status})`,
);
@@ -832,7 +833,7 @@ async function createWithdrawalCall(
error: {
title: `Withdrawal creation gave response error`,
description: response.error.description,
- debug: `${response} (${res.status})`,
+ debug: JSON.stringify(response),
},
}));
return;
@@ -905,7 +906,10 @@ async function registrationCall(
try {
res = await fetch(url.href, {
method: "POST",
- body: JSON.stringify(req),
+ body: JSON.stringify({
+ username: req.username,
+ password: req.password,
+ }),
headers,
});
} catch (error) {
@@ -924,15 +928,14 @@ async function registrationCall(
return;
}
if (!res.ok) {
- const errorRaw = await res.text();
- console.log(
- `New registration gave response error (${res.status})`,
- errorRaw,
- );
+ const response = await res.json();
pageStateSetter((prevState) => ({
...prevState,
hasError: true,
- error: errorRaw,
+ error: {
+ title: `New registration gave response error`,
+ debug: JSON.stringify(response),
+ },
}));
} else {
pageStateSetter((prevState) => ({
@@ -2316,7 +2319,10 @@ function PublicHistories(Props: any): VNode {
...prevState,
hasError: true,
showPublicHistories: false,
- error: i18n`List of public accounts was not found.`,
+ error: {
+ title: i18n`List of public accounts was not found.`,
+ debug: JSON.stringify(error),
+ },
}));
break;
default:
@@ -2325,7 +2331,10 @@ function PublicHistories(Props: any): VNode {
...prevState,
hasError: true,
showPublicHistories: false,
- error: i18n`List of public accounts could not be retrieved.`,
+ error: {
+ title: i18n`List of public accounts could not be retrieved.`,
+ debug: JSON.stringify(error),
+ },
}));
break;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: removing repeat password field in the registration form,
gnunet <=