@@ 321-325 (lines=5) @@ | ||
318 | ||
319 | } |
|
320 | ||
321 | if (!$this->dx_auth->is_logged_in()) { |
|
322 | $this->socAuth('fb', $result['id'], $result['name'], $result['email'], $result['location']['name'], '', ''); |
|
323 | } else { |
|
324 | $this->link('fb', $result['id']); |
|
325 | } |
|
326 | } else { |
|
327 | $this->core->error_404(); |
|
328 | } |
|
@@ 357-361 (lines=5) @@ | ||
354 | ||
355 | $address = $result['response'][0]['city']['title'] . ' ' . $result['response'][0]['country']['title']; |
|
356 | ||
357 | if (!$this->dx_auth->is_logged_in()) { |
|
358 | $this->socAuth('vk', $token->getExtraParams()['user_id'], $result['response'][0]['first_name'], $token->getExtraParams()['email'], $address, '', ''); |
|
359 | } else { |
|
360 | $this->link('vk', $token->getExtraParams()['user_id']); |
|
361 | } |
|
362 | } else { |
|
363 | $this->core->error_404(); |
|
364 | } |