Skip to content

Commit

Permalink
Merge pull request #1092 from robitmoh/14.next-cake5
Browse files Browse the repository at this point in the history
Fix named parameter issue in _createSocialUser method for findExistingForSocialLogin #1091
  • Loading branch information
ajibarra authored Aug 2, 2024
2 parents a80f33d + 0383dcc commit be5fb4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Behavior/SocialBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ protected function _createSocialUser($data, $options = [])
if ($useEmail && empty($email)) {
throw new MissingEmailException(__d('cake_d_c/users', 'Email not present'));
} else {
$existingUser = $this->_table->find('existingForSocialLogin', options: ['email' => $email])->first();
$existingUser = $this->_table->find('existingForSocialLogin', email: $email )->first();
}

$user = $this->_populateUser($data, $existingUser, $useEmail, $validateEmail, $tokenExpiration);
Expand Down

0 comments on commit be5fb4f

Please sign in to comment.