[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: receive subscriber password upon regis
From: |
gnunet |
Subject: |
[libeufin] branch master updated: receive subscriber password upon registration. |
Date: |
Tue, 07 Apr 2020 20:29:07 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 3fcf6d9 receive subscriber password upon registration.
3fcf6d9 is described below
commit 3fcf6d9831a25a94f919ad0ea3d4b238f7e821d6
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Apr 7 20:28:44 2020 +0200
receive subscriber password upon registration.
---
nexus/src/main/kotlin/tech/libeufin/nexus/JSON.kt | 3 ++-
nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt | 3 +++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/JSON.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/JSON.kt
index 8b4aa04..a4774a9 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/JSON.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/JSON.kt
@@ -70,7 +70,8 @@ data class EbicsSubscriberInfoRequestJson(
val hostID: String,
val partnerID: String,
val userID: String,
- val systemID: String? = null
+ val systemID: String? = null,
+ val password: String? = null
)
/**
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
index da637cf..4ff18c1 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -1148,6 +1148,9 @@ fun main() {
signaturePrivateKey =
SerialBlob(pairA.private.encoded)
encryptionPrivateKey =
SerialBlob(pairB.private.encoded)
authenticationPrivateKey =
SerialBlob(pairC.private.encoded)
+ password = if (body.password != null) {
+
SerialBlob(CryptoUtil.hashStringSHA256(body.password))
+ } else null
}
}
} catch (e: Exception) {
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: receive subscriber password upon registration.,
gnunet <=