Skip to content

Commit

Permalink
Merge pull request #242 from mageplaza/2.3-develop
Browse files Browse the repository at this point in the history
2.3 develop
  • Loading branch information
Victor-Mageplaza authored Aug 1, 2021
2 parents 0a81448 + 25cb0a9 commit bf14467
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Controller/Popup/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ public function execute()
}
} catch (LocalizedException $e) {
$result['message'][] = $this->escaper->escapeHtml($e->getMessage());
if ($this->session->getMpRedirectUrl()) {
$result['redirect'] = $this->session->getMpRedirectUrl();
$this->session->unsMpRedirectUrl();
}
} catch (Exception $e) {
$result['message'][] = __('We can\'t save the customer.');
}
Expand Down
3 changes: 1 addition & 2 deletions Controller/Social/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ public function execute()
}

$customer = $this->createCustomerProcess($userProfile, $type);

} else {
} elseif ($this->apiHelper->isCheckMode()) {
if ($customerData->getData('password_hash') === null) {
$userProfile->hash = '';
$this->session->setUserProfile($userProfile);
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"roave/security-advisories": "dev-master"
},
"type": "magento2-module",
"version": "2.9.0",
"version": "2.10.0",
"license": "proprietary",
"authors": [
{
Expand Down
2 changes: 1 addition & 1 deletion etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<enabled>0</enabled>
<link_trigger>.header.links, .section-item-content .header.links, .authorization-link</link_trigger>
<send_password>1</send_password>
<check_mode>1</check_mode>
<check_mode>0</check_mode>
<social_display>1,2,3,4</social_display>
<popup_login>popup_slide</popup_login>
<authentication_popup>0</authentication_popup>
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/layout/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<referenceBlock name="header_customer_form_login" remove="true"/>
<referenceContainer name="content">
<block class="Mageplaza\SocialLogin\Block\Popup" name="social-login-popup" as="popup.modal" template="popup.phtml">
<block class="Magento\Framework\View\Element\Template" name="social-login-popup-email" before="-" as="popup.email" template="Mageplaza_SocialLogin::popup/form/email.phtml"/>
<block class="Mageplaza\SocialLogin\Block\Popup" name="social-login-popup-email" before="-" as="popup.email" template="Mageplaza_SocialLogin::popup/form/email.phtml"/>
<block class="Mageplaza\SocialLogin\Block\Form\Login" name="social-login-popup-authentication" as="popup.authentication" template="Mageplaza_SocialLogin::popup/form/authentication.phtml">
<block class="Mageplaza\SocialLogin\Block\Popup\Social" name="social-login-popup-authentication-social" as="popup.authentication.social" template="Mageplaza_SocialLogin::popup/form/authentication/social.phtml"/>
<container name="social.login.form.additional.info.login" as="form_additional_info">
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/js/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ define(
'Magento_Customer/js/customer-data',
'mage/translate',
'Magento_Ui/js/modal/modal',
'mageplaza/core/jquery/popup'
'Mageplaza_Core/js/jquery.magnific-popup.min'
], function ($, customerData, $t, modal) {
'use strict';

Expand Down

0 comments on commit bf14467

Please sign in to comment.