[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: work on e-mail auth
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: work on e-mail auth |
Date: |
Wed, 01 Sep 2021 11:04:19 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis.
The following commit(s) were added to refs/heads/master by this push:
new e586a72 work on e-mail auth
e586a72 is described below
commit e586a72a81ff00805df452014a36700998b5869d
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Sep 1 11:04:16 2021 +0200
work on e-mail auth
---
src/authorization/Makefile.am | 9 +++++++++
src/authorization/anastasis-authorization-email.sh | 2 ++
src/authorization/authorization-email-messages.json | 4 ++--
src/authorization/authorization-email.conf | 11 +++++++++++
4 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/src/authorization/Makefile.am b/src/authorization/Makefile.am
index 0687129..645d6ec 100644
--- a/src/authorization/Makefile.am
+++ b/src/authorization/Makefile.am
@@ -1,6 +1,12 @@
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include
+pkgcfgdir = $(prefix)/share/anastasis/config.d/
+
+pkgcfg_DATA = \
+ authorization-email.conf
+
+
SUBDIRS = libanastasiseufin .
pkgcfgdir = $(prefix)/share/anastasis/config.d/
@@ -26,6 +32,9 @@ endif
bin_PROGRAMS = \
anastasis-helper-authorization-iban
+bin_SCRIPTS = \
+ anastasis-authorization-email.sh
+
anastasis_helper_authorization_iban_SOURCES = \
anastasis-helper-authorization-iban.c
anastasis_helper_authorization_iban_LDADD = \
diff --git a/src/authorization/anastasis-authorization-email.sh
b/src/authorization/anastasis-authorization-email.sh
new file mode 100755
index 0000000..ae3ecf7
--- /dev/null
+++ b/src/authorization/anastasis-authorization-email.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec mail -s "Anastasis" -r noreply "$1"
diff --git a/src/authorization/authorization-email-messages.json
b/src/authorization/authorization-email-messages.json
index 56f648c..5a2e048 100644
--- a/src/authorization/authorization-email-messages.json
+++ b/src/authorization/authorization-email-messages.json
@@ -3,8 +3,8 @@
"instructions_i18n" : {
"de_DE" : "Ein Authorisierungscode wurde an %.*s@DOMAIN geschickt"
},
- "body" : "Subject: Anastasis recovery code: A-%llu\n\nThis is for
challenge %s.\n",
+ "body" : "Your Anastasis recovery code is:\nA-%llu\n\nThis is for
challenge %s.\n",
"body_i18n" : {
- "de_DE" : "Subject: Anastasis Autorisierungscode: A-%llu\n\nDies ist
der Code für den Vorgang %s.\n"
+ "de_DE" : "Ihr Anastasis Autorisierungscode ist:\nA-%llu\n\nDies ist
der Code für den Vorgang %s.\n"
}
}
diff --git a/src/authorization/authorization-email.conf
b/src/authorization/authorization-email.conf
new file mode 100644
index 0000000..eb23fd4
--- /dev/null
+++ b/src/authorization/authorization-email.conf
@@ -0,0 +1,11 @@
+[authorization-email]
+
+# Set to 'YES' to enable (must then also specify 'COST')
+ENABLED = NO
+
+# Set recovery cost:
+# COST =
+
+# Feel free to use a different command with equivalent
+# semantics.
+COMMAND = anastasis-authorization-mail.sh
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-anastasis] branch master updated: work on e-mail auth,
gnunet <=