Open alexsaueressig opened 10 years ago
On ConnectComponent, add User->exists validation:
if ($this->User->exists()) { if (!$this->User->field('facebook_id')) { $this->User->saveField('facebook_id', $this->uid); } }
It avoids exceptions in case the user has been deleted from DB but still authenticated by session.
On ConnectComponent, add User->exists validation:
if ($this->User->exists()) { if (!$this->User->field('facebook_id')) { $this->User->saveField('facebook_id', $this->uid); } }
It avoids exceptions in case the user has been deleted from DB but still authenticated by session.