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