From e28b866e651b23fc604377d450fd215c30916e38 Mon Sep 17 00:00:00 2001 From: Dario Rekowski on RockPI Date: Tue, 16 Jun 2020 09:51:29 +0000 Subject: [PATCH] skip email check state in login because now user should able to login without checked email --- src/Controller/AppController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/AppController.php b/src/Controller/AppController.php index 80d410c80..15a39f201 100644 --- a/src/Controller/AppController.php +++ b/src/Controller/AppController.php @@ -173,7 +173,7 @@ class AppController extends Controller $json = $response->getJson(); if(isset($json) && count($json) > 0) { - if($json['state'] === 'success' && intval($json['user']['email_checked']) === 1) { + if($json['state'] === 'success') { //echo "email checked: " . $json['user']['email_checked'] . ";
"; if($session->read('session_id') != $session_id || ( $userStored && !isset($userStored['id']))) {