Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/ObjectManager/etc/config.xsd">
- <preference for="MagentoCustomerControllerAjaxLogin" type="Your_CompanyYour_ModuleControllerAjaxLogin" />
- </config>
- if (!$this->getScopeConfig()->getValue('customer/startup/redirect_dashboard') && $redirectRoute) {
- $response['redirectUrl'] = $this->_redirect->success($redirectRoute);
- $this->getAccountRedirect()->clearRedirectCookie();
- }
- $response['redirectUrl'] = $this->_redirect->success($this->_url->getUrl("customer/account"));
- if (redirectUrl) {
- window.location.href = redirectUrl;
- } else if (response.redirectUrl) {
- window.location.href = response.redirectUrl;
- } else {
- location.reload();
- }
- if (response.redirectUrl) {
- window.location.href = response.redirectUrl;
- } else if (redirectUrl) {
- window.location.href = redirectUrl;
- } else {
- location.reload();
- }
- var config = {
- map: {
- '*': {
- 'Magento_Customer/js/action/login': 'YourCompany_YourModule/js/login'
- }
- }
- };
Add Comment
Please, Sign In to add comment