|
@@ 80-83 (lines=4) @@
|
| 77 |
|
if (isset($attributes[$attr[1]])) { |
| 78 |
|
$this->attributes[$key] = $attributes[$attr[1]]; |
| 79 |
|
} |
| 80 |
|
else { |
| 81 |
|
throw new EAuthException(Yii::t('eauth', 'Unable to complete the authentication because the required data was not received.', array('{provider}' => $this->getServiceTitle()))); |
| 82 |
|
return false; |
| 83 |
|
} |
| 84 |
|
} |
| 85 |
|
|
| 86 |
|
foreach ($this->optionalAttributes as $key => $attr) { |
|
@@ 95-98 (lines=4) @@
|
| 92 |
|
$this->authenticated = true; |
| 93 |
|
return true; |
| 94 |
|
} |
| 95 |
|
else { |
| 96 |
|
throw new EAuthException(Yii::t('eauth', 'Unable to complete the authentication because the required data was not received.', array('{provider}' => $this->getServiceTitle()))); |
| 97 |
|
return false; |
| 98 |
|
} |
| 99 |
|
} catch (Exception $e) { |
| 100 |
|
throw new EAuthException($e->getMessage(), $e->getCode()); |
| 101 |
|
} |