CakeDC/Users gmail error

@evansLY
Tue, 03 Sep 2024 18:16:08 +0000

It’s been years since I’ve touched programming, last time I touched CakePHP was back in early version 3. I knew it had to be something stupid I was just over looking and not seeing what was right in front of me.

But anyways then there is a bug in the CakeDC/Users plugin.
\cakedc\users\src\Model\Behavior\SocialBehavior.php

    public function findExistingForSocialLogin(\Cake\ORM\Query\SelectQuery $query, array $options)
    {
        return $query->where([
            $this->_table->aliasField('email') => $options['email'],
        ]);
    }

Should be.

    public function findExistingForSocialLogin(\Cake\ORM\Query\SelectQuery $query, array $options)
    {
        return $query->where([
            $this->_table->aliasField('email') => $options['options']['email'],
        ]);
    }

Now back to playing with more code. Thanks!