Skip to content

Commit

Permalink
Fix the named parameter in Model/Behavior/SocialBehavior.php
Browse files Browse the repository at this point in the history
  • Loading branch information
robitmoh committed Jul 22, 2024
1 parent b8dd2ae commit 0383dcc
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 0383dcc

Please sign in to comment.