taldir

Directory service to resolve wallet mailboxes by messenger addresses
Log | Files | Refs | Submodules | README | LICENSE

commit 29cea1d6a9be1387ef5f2f0f221aa1706b316f66
parent 529c8103597b1e93b3ccc54242562e3575a33452
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Sat, 25 Jan 2025 14:46:48 +0100

fix validator scripts

Diffstat:
Mscripts/validators/taldir-validate-mail | 4++--
Mscripts/validators/taldir-validate-phone | 11++---------
2 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/scripts/validators/taldir-validate-mail b/scripts/validators/taldir-validate-mail @@ -4,5 +4,5 @@ USER_MAIL=$1 CODE=$2 LINK=$(taldir-cli -l -a $1 -c $2) TOPIC=$3 -MESSAGE=$(echo -e $4) # Interpret backslash (newline etc) -$MESSAGE | mail -s "Taldir Registration Confirmation" $USER_MAIL +MESSAGE=$4 # Interpret backslash (newline etc) +echo -e $MESSAGE | mail -s "Taldir Registration Confirmation" $USER_MAIL diff --git a/scripts/validators/taldir-validate-phone b/scripts/validators/taldir-validate-phone @@ -13,16 +13,9 @@ USER_MAIL=$1 CODE=$2 LINK=$(taldir-cli -l -a $1 -c $2) -MESSAGE=" -Hi, +TOPIC=$3 -welcome to TalDir. You are almost there. -Your registration code is $CODE. -Follow this link to complete your Taldir registration: $LINK - -Best, -TalDir -" +MESSAGE=$4 TMPFILE=$(mktemp /tmp/sms-loggingXXXXXX) STATUS=$(curl --request POST \