summaryrefslogtreecommitdiff
path: root/regional-currency/ask_questions.py
diff options
context:
space:
mode:
Diffstat (limited to 'regional-currency/ask_questions.py')
-rwxr-xr-xregional-currency/ask_questions.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/regional-currency/ask_questions.py b/regional-currency/ask_questions.py
index c3b9875..7b9b9b8 100755
--- a/regional-currency/ask_questions.py
+++ b/regional-currency/ask_questions.py
@@ -273,7 +273,7 @@ if do_conversion:
)
params = urllib.parse.urlencode({"receiver-name": name})
add_conf("CONVERSION_PAYTO", f"payto://iban/{bic}/{iban}?{params}")
-ask_str(
+bank_name = ask_str(
"BANK_NAME",
"3. Enter the human-readable name of the bank (e.g. 'Taler Bank'): ",
"Taler Bank",
@@ -321,7 +321,7 @@ if ask_yes_no(
auth_token = base64.b64encode(f"{customer_id}:{api_key}".encode()).decode()
if not try_cmd(
["libeufin-tan-sms.sh", phone_number],
- "12345 is your verification code for GNU Taler setup",
+ f"T-12345 is your verification code for {bank_name} setup",
{**os.environ, "AUTH_TOKEN": auth_token},
):
print(
@@ -329,7 +329,7 @@ if ask_yes_no(
)
return None
code = ask_str(None, f"6.4. Enter the code received by {phone_number} : ")
- if code != "12345":
+ if code != "12345" and code != "T-12345":
print(
f"Wrong code got '{code}' expected '12345', check your credentials and phone number"
)