I received all of the standard data in the form of $this->data
from Linkedin.
What do I save as a password to make $this->Auth->login()
work?
Here is my code:
public function opauth_complete() {
$conditions = array(
'User.email' => $this->data['auth']['info']['email']
);
if ($this->User->hasAny($conditions)){
debug($this->data);
$this->request->data['User']['username'] = //what do I put here?
$this->request->data['User']['password'] = //what do I put here?
//login stuff
if ($this->Auth->login()) {
$this->redirect('/');
}
}
else {
//register stuff
}
}