CakeDC / users

Users Plugin for CakePHP
https://www.cakedc.com
Other
521 stars 296 forks source link

Google Social Login issue #952

Closed monjon closed 2 years ago

monjon commented 3 years ago

I am trying to add google authentification using Social Authentication following the documentation provided here: https://github.com/CakeDC/users/blob/master/Docs/Documentation/Installation.md Each time I am running the command: bin/cake users addSuperuser I have the following error:

[PDOException] SQLSTATE[HY000]: General error: 1364 Field 'id' doesn't have a default value in .../vendor/cakephp/cakephp/src/Database/Statement/MysqlStatement.php on line 39

Thanks for your help

rochamarcelo commented 2 years ago

This happens when you have a custom table without auto unique id.