| 1234567891011121314151617181920212223242526272829303132 |
- <?php
- /**
- *
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Multishipping\Controller\Checkout;
- class Login extends \Magento\Multishipping\Controller\Checkout
- {
- /**
- * Multishipping checkout login page
- *
- * @return void
- */
- public function execute()
- {
- if ($this->_objectManager->get(\Magento\Customer\Model\Session::class)->isLoggedIn()) {
- $this->_redirect('*/*/');
- return;
- }
- $this->_view->loadLayout();
- // set account create url
- $loginForm = $this->_view->getLayout()->getBlock('customer.new');
- if ($loginForm) {
- $loginForm->setCreateAccountUrl($this->_getHelper()->getMSRegisterUrl());
- }
- $this->_view->renderLayout();
- }
- }
|