|
|
@@ -697,7 +697,7 @@ class AuthComponent extends Component
|
|
|
$result = $auth->getUser($this->request);
|
|
|
if (!empty($result) && is_array($result)) {
|
|
|
$this->_authenticationProvider = $auth;
|
|
|
- $event = $this->dispatchEvent('Auth.afterIdentify', [$result]);
|
|
|
+ $event = $this->dispatchEvent('Auth.afterIdentify', [$result, $auth]);
|
|
|
if ($event->result !== null) {
|
|
|
$result = $event->result;
|
|
|
}
|
|
|
@@ -769,7 +769,7 @@ class AuthComponent extends Component
|
|
|
$result = $auth->authenticate($this->request, $this->response);
|
|
|
if (!empty($result) && is_array($result)) {
|
|
|
$this->_authenticationProvider = $auth;
|
|
|
- $event = $this->dispatchEvent('Auth.afterIdentify', [$result]);
|
|
|
+ $event = $this->dispatchEvent('Auth.afterIdentify', [$result, $auth]);
|
|
|
if ($event->result !== null) {
|
|
|
return $event->result;
|
|
|
}
|