You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 16, 2022. It is now read-only.
Scenario:
Let's say user has 2 gmail accounts aaa@gmail.com and bbb@gmail.com
First he logs on the site. It will create the user normally . It logs out and logs back in with the second gmail account . While logged send time on bbb@gmail.com time puts on user email aaa@gmail.com when creating the account.
( i think it can be reproduced by having 2 facebook accounts as well )
It will generate the following error:
"Original error message: CDbCommand failed to execute the SQL statement: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-Google' for key 'unic_user_id_name'. The SQL statement executed was: INSERT INTO tbl_user_oauth (provider, profile_cache, identifier, session_data, user_id) VALUES (:yp0, :yp1, :yp2, :yp3, :yp4)"
Error is in UserOAuth.php line 269
public function bindTo($user_id)
{
$this->user_id = $user_id;
return $this->save();
}