diff --git a/Controller/Login/Index.php b/Controller/Login/Index.php index e8d1cf7..a3792f4 100755 --- a/Controller/Login/Index.php +++ b/Controller/Login/Index.php @@ -27,7 +27,7 @@ public function execute() try { $login->authenticateCustomer(); - } catch (Exception $e) { + } catch (\Exception $e) { $this->messageManager->addError($e->getMessage()); } diff --git a/Model/Login.php b/Model/Login.php index 9d8d7aa..e55f6a3 100755 --- a/Model/Login.php +++ b/Model/Login.php @@ -162,7 +162,7 @@ public function authenticateCustomer() $customer = $this->getCustomer(); if (!$customer->getId()) { - throw new Exception(__("Customer are no longer exist."), 1); + throw new \Exception(__("Customer are no longer exist."), 1); } if ($this->_customerSession->loginById($customer->getId())) {