Hi there... Trying to do this for my login: code $email = $this -> request -> getPost('email'); $password = $this -> request -> getPost('password');
        $user = User::find(
            [
                "conditions" => "email = :email: AND password = :password:",
                "bind" == [
                    'email'     => $email,
                    'password'     => sha1($password)
                ]
            ]);
        //$count = count($user);
        if($user === false){
            $this->flashSession->message('dark', "Your details are incorrect. Please check and try again");
            $this->dispatcher->forward(
            [
                'controller'    => 'auth',
                'action'        => 'index'
            ]);
        }
        else{
            $this->flashSession->message('success', "Welcome, ".$user->fullname ."Count: ".$count);
            $this->dispatcher->forward(
            [
                'controller'    => 'auth',
                'action'        => 'index'
            ]);
        }There's only one record in the db. However, regardless of the details I insert (correct or not, $user is never null / false. Please correct me if I made a mistake. Thanks.