Skip to content

Commit

Permalink
Added new login/out events
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesallsup committed Jul 16, 2014
1 parent 7293cf6 commit 404e3cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions upload/catalog/controller/account/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public function index() {
$this->session->data['shipping_address'] = $this->model_account_address->getAddress($this->customer->getAddressId());
}

$this->event->trigger('customer_login');

$this->response->redirect($this->url->link('account/account', '', 'SSL'));
}
}
Expand Down
2 changes: 2 additions & 0 deletions upload/catalog/controller/account/logout.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public function index() {
unset($this->session->data['voucher']);
unset($this->session->data['vouchers']);

$this->event->trigger('customer_logout');

$this->response->redirect($this->url->link('account/logout', '', 'SSL'));
}

Expand Down

0 comments on commit 404e3cb

Please sign in to comment.