From 68d37197b6d8109e1c2e61a85949eef4b16908a7 Mon Sep 17 00:00:00 2001 From: Dominika Liberda Date: Fri, 30 Oct 2020 00:09:21 +0100 Subject: [PATCH] fix verify check --- webroot/api/login.shs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webroot/api/login.shs b/webroot/api/login.shs index 01d98e9..d306197 100644 --- a/webroot/api/login.shs +++ b/webroot/api/login.shs @@ -4,7 +4,7 @@ source code/common.sh if [[ "${post_data[login]}" != '' && "${post_data[password]}" != '' ]]; then login "${post_data[login]}" "${post_data[password]}" status=$? - if ! account_verified "${post_data[login]}"; then + if account_verified "${post_data[login]}"; then status=-2 reason="Account not verified" fi