[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: debug password-less registrations
From: |
gnunet |
Subject: |
[libeufin] branch master updated: debug password-less registrations |
Date: |
Tue, 07 Apr 2020 20:48:28 +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 3abbcae debug password-less registrations
3abbcae is described below
commit 3abbcaeae1b1c085d308f0558ce28b86535d6588
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Apr 7 20:48:11 2020 +0200
debug password-less registrations
---
nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
index 4ff18c1..963d5ce 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -1133,13 +1133,14 @@ fun main() {
}
post("/ebics/{id}/subscribers") {
+ val newUserId = call.parameters["id"]
val body = call.receive<EbicsSubscriberInfoRequestJson>()
val pairA = CryptoUtil.generateRsaKeyPair(2048)
val pairB = CryptoUtil.generateRsaKeyPair(2048)
val pairC = CryptoUtil.generateRsaKeyPair(2048)
val row = try {
transaction {
- EbicsSubscriberEntity.new(id =
expectId(call.parameters["id"])) {
+ EbicsSubscriberEntity.new(id = expectId(newUserId)) {
ebicsURL = body.ebicsURL
hostID = body.hostID
partnerID = body.partnerID
@@ -1150,7 +1151,10 @@ fun main() {
authenticationPrivateKey =
SerialBlob(pairC.private.encoded)
password = if (body.password != null) {
SerialBlob(CryptoUtil.hashStringSHA256(body.password))
- } else null
+ } else {
+ logger.debug("No password set for $newUserId")
+ 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: debug password-less registrations,
gnunet <=