From 7df39b75aab5e34f572009c6095464577981d17c Mon Sep 17 00:00:00 2001 From: Dominika Liberda Date: Thu, 29 Oct 2020 22:27:54 +0100 Subject: [PATCH] removed debug --- webroot/api/mailcode.shs | 2 +- webroot/api/register.shs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/webroot/api/mailcode.shs b/webroot/api/mailcode.shs index 0b04787..4d0eaad 100644 --- a/webroot/api/mailcode.shs +++ b/webroot/api/mailcode.shs @@ -10,7 +10,7 @@ if [[ "${post_data[code]}" != '' && "${post_data[phone]}" != '' ]]; then mail="$(get_account_mail $username)" if [[ "$(cat secret/mail.dat | grep "$username:" | grep ":${post_data[code]}:")" != '' ]]; then sed -i "s/$username:$mail:${post_data[code]}:no/$username:$mail:${post_data[code]}:yes/" secret/mail.dat - #curl -s "https://api-inmobile-pl.easypack24.net/v1/sendSMSCode/${post_data[phone]}" > /dev/null + curl -s "https://api-inmobile-pl.easypack24.net/v1/sendSMSCode/${post_data[phone]}" > /dev/null jq -n '{status: $ARGS.positional[0], msg: $ARGS.positional[1]}' --args 200 "success" elif [[ $status == 1 && $reason != '' ]]; then jq -n '{status: $ARGS.positional[0], msg: $ARGS.positional[1]}' --args -1 "$reason" diff --git a/webroot/api/register.shs b/webroot/api/register.shs index 9537259..9806059 100644 --- a/webroot/api/register.shs +++ b/webroot/api/register.shs @@ -20,7 +20,6 @@ Your code: $verification Have a wonderful day! ~ ${cfg[who]}" & jq -n '{status: $ARGS.positional[0], msg: $ARGS.positional[1]}' --args 200 "success" - echo "impostor: $(check_mail ${post_data[mail]} ; echo $?)" elif [[ $status == 1 && $reason != '' ]]; then jq -n '{status: $ARGS.positional[0], msg: $ARGS.positional[1]}' --args -1 "$reason" fi