From 184cfe245403eff8a57d2ea2660b2651d36eafef Mon Sep 17 00:00:00 2001 From: Dominika Liberda Date: Thu, 29 Oct 2020 23:32:18 +0100 Subject: [PATCH] let's not check too many things, shall we? --- webroot/api/smscode.shs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/webroot/api/smscode.shs b/webroot/api/smscode.shs index 6f990ea..b1fcaf5 100644 --- a/webroot/api/smscode.shs +++ b/webroot/api/smscode.shs @@ -2,10 +2,6 @@ if ! session_verify "${cookies[sh_session]}"; then jq -n '{status: $ARGS.positional[0], msg: $ARGS.positional[1]}' --args -1 "You're not logged in!" return -elif ! account_verified "$(account_get_username ${cookies[sh_session]})"; then - jq -n '{status: $ARGS.positional[0], msg: $ARGS.positional[1]}' --args -2 "You didn't verify your mail!" - return - fi source "${cfg[namespace]}/code/common.sh"