commit 8e96132622933265a92c708175f535b5f1b471af
parent bc667929d227a59f9ab259c63e4bd955354607a1
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date: Thu, 3 Sep 2026 17:57:17 +0200
better message style
Diffstat:
5 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/flake.lock b/flake.lock
@@ -2,18 +2,17 @@
"nodes": {
"nixpkgs": {
"locked": {
- "lastModified": 1774386573,
- "narHash": "sha256-4hAV26quOxdC6iyG7kYaZcM3VOskcPUrdCQd/nx8obc=",
+ "lastModified": 1784142218,
+ "narHash": "sha256-RCyUtcUT5xUeLWtXpEQ7ztZwtyarrOzHiiBIEjY1B6g=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "46db2e09e1d3f113a13c0d7b81e2f221c63b8ce9",
+ "rev": "3e8de3ced68a68c10a1380dd8d077e6fee27fa5c",
"type": "github"
},
"original": {
- "owner": "NixOS",
- "ref": "nixos-unstable",
- "repo": "nixpkgs",
- "type": "github"
+ "id": "nixpkgs",
+ "ref": "release-26.05",
+ "type": "indirect"
}
},
"root": {
diff --git a/flake.nix b/flake.nix
@@ -54,6 +54,7 @@
packages = [
pkgs.gnumake
pkgs.go
+ pkgs.gopls
pkgs.postgresql
];
diff --git a/locales/de-DE/taldir.yml b/locales/de-DE/taldir.yml
@@ -34,7 +34,7 @@ about: "Über TalDir"
productDisclaimerShort: 'Dieser Dienst ist eine Funktionsdemonstration. <a href="/about">Mehr</a>'
productDisclaimer: 'Dies ist eine Demo-Instanz des <b>Tal</b>er <b>Dir</b>ectory (TalDir) Dienstes. Der Dienst implementiert die <a href="https://docs.taler.net/core/api-taldir.html">Taler TalDir API-Spezifikation</a>. TalDir erlaubt es Dir dein Identitäts-Alias (wie z.B. Email-Adresse oder Telefonnummer) mit einer Taler Mailbox-Adresse (z.B. https://mailbox.gnunet.org/MCVJNGE0HE...) zu verlinken. TalDir bzw. die TalDIR API können in einer digitalen Geldbörse integriert werden um sogenannte Peer-to-Peer-Transaktionen zu unterstützen. Diese Weboberfläche dient lediglich als Demonstration der Funktionalitäten der API.<p><b>ACHTUNG:</b> Dieser Dienst ist eine Demo. Es ist kein fertiges Produkt. Die Entwicklung dieses Dienstes dauert an and wird von <a href="https://nlnet.nl/project/TALER-LookupService/">NLnet and NGI TALER</a> gefördert.</p>'
taldirRegTopic: "Taldir Alias Validierung"
-taldirRegMessage: "Hi,\\n\\nWillkommen bei TalDir. Please folge diesem Link um dein Alias zu bestätigen und deine Anfrage abzuschliessen: %s\\n\\nViele Grüße,\\nTalDir"
+taldirRegMessage: "Hi,\\n\\nWillkommen bei TalDir. Deine Challenge ist: %s.\\n\\nAlternativ nutze diesen Link um dein Alias zu bestätigen und deine Anfrage abzuschliessen: %s\\n\\nViele Grüße,\\nTalDir"
importContactLink: "Nutze diesen Link um den Kontakt in deine Taler wallet aufzunehmen:"
importContactLinkText: "Kontakt importieren."
importContactQr: "Oder scanne diesen QR code um den Kontakt in deine Taler wallet aufzunehmen:"
diff --git a/locales/en-US/taldir.yml b/locales/en-US/taldir.yml
@@ -34,7 +34,7 @@ about: "About TalDir"
productDisclaimerShort: 'This service is for demonstration purposes only. <a href="/about">Learn more</a>'
productDisclaimer: 'This is a demo instance of the <b>Tal</b>er <b>Dir</b>ectory (TalDir) service. It implements the <a href="https://docs.taler.net/core/api-taldir.html">Taler TalDir API specification</a>. TalDir allows you to link your identity aliases (such as email addresses or phone numbers) with a Taler Mailbox (e.g. https://mailbox.gnunet.org/MCVJNGE...). Note that in practice, we expect that this service and its API would be used through a digital payment wallet to facilitate peer-to-peer transactions. The lookup and registration functionality on this web page is for demonstration purposes only. <p><b>IMPORTANT:</b> This is a demo service. It is not production-ready. The development of this service is ongoing and is funded by <a href="https://nlnet.nl/project/TALER-LookupService/">NLnet and NGI TALER</a>.</p>'
taldirRegTopic: "Taldir Alias Validation"
-taldirRegMessage: "Hi,\\n\\nwelcome to TalDir. Please follow this link validate your alias and complete your request: %s\\n\\nBest,\\nTalDir"
+taldirRegMessage: "Hi,\\n\\nwelcome to TalDir. Your challenge code is: %s.\\n\\nAlternatively, follow this link validate your alias and complete your request: %s\\n\\nBest,\\nTalDir"
importContactLink: "Use this link to import the contact into your Taler wallet:"
importContactLinkText: "Import contact."
importContactQr: "Or scan this QR code to import the contact into your Taler wallet:"
diff --git a/pkg/taldir/taldir.go b/pkg/taldir/taldir.go
@@ -632,7 +632,7 @@ func (t *Taldir) registerRequest(w http.ResponseWriter, r *http.Request) {
}
topic := t.I18n.GetLocale(r).GetMessage("taldirRegTopic")
link := t.Host + "/register/" + url.QueryEscape(validation.HAlias) + "/" + url.QueryEscape(validation.Challenge) + "?alias=" + url.QueryEscape(req.Alias)
- message := t.I18n.GetLocale(r).GetMessage("taldirRegMessage", link)
+ message := t.I18n.GetLocale(r).GetMessage("taldirRegMessage", validation.Challenge, link)
redirectionLink, err := validator.RegistrationStart(topic, link, message, req.Alias, validation.Challenge)
if err != nil {
t.Logger.Logf(LogError, "%s\n", err.Error())