CakeDC / users

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

Fix named parameter issue in _createSocialUser method for findExistingForSocialLogin #1091

Closed robitmoh closed 1 month ago

robitmoh commented 1 month ago

Description:

This pull request addresses issue #1090, which involves a problem with named parameters in the _createSocialUser method when calling the find method. The issue caused the findExistingForSocialLogin custom finder to not correctly retrieve the 'email' parameter, leading to incorrect query construction.

Changes Made:

Modified the _createSocialUser method to pass parameters directly to the find method without using a named parameter.

robitmoh commented 1 month ago

The fixed sytle wrong The cakephp5 need the named parameter when calling finders