[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: Storing normalized admin payto URI
From: |
gnunet |
Subject: |
[libeufin] branch master updated: Storing normalized admin payto URI |
Date: |
Mon, 02 Oct 2023 16:24:38 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new f683ca49 Storing normalized admin payto URI
f683ca49 is described below
commit f683ca49e99208166789a108dcab299028332cc7
Author: MS <ms@taler.net>
AuthorDate: Mon Oct 2 16:24:19 2023 +0200
Storing normalized admin payto URI
---
bank/src/main/kotlin/tech/libeufin/bank/helpers.kt | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/bank/src/main/kotlin/tech/libeufin/bank/helpers.kt
b/bank/src/main/kotlin/tech/libeufin/bank/helpers.kt
index 1f2d0b00..9f08f447 100644
--- a/bank/src/main/kotlin/tech/libeufin/bank/helpers.kt
+++ b/bank/src/main/kotlin/tech/libeufin/bank/helpers.kt
@@ -424,9 +424,14 @@ fun maybeCreateAdminAccount(db: Database, ctx:
BankApplicationContext): Boolean
if (maybeAdminBankAccount == null) {
logger.info("Creating admin bank account")
val adminMaxDebtObj = ctx.defaultAdminDebtLimit
+ val adminInternalPayto = stripIbanPayto(genIbanPaytoUri())
+ if (adminInternalPayto == null) {
+ logger.error("Bank generated invalid payto URI for admin")
+ return false
+ }
val adminBankAccount = BankAccount(
hasDebt = false,
- internalPaytoUri = genIbanPaytoUri(),
+ internalPaytoUri = adminInternalPayto,
owningCustomerId = adminCustomerId,
isPublic = false,
isTalerExchange = false,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: Storing normalized admin payto URI,
gnunet <=