-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://github.com/mage2pro/core/issues/163
- Loading branch information
1 parent
701c948
commit fd0dd47
Showing
9 changed files
with
49 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
<?php | ||
# 2016-12-03 | ||
namespace Df\Customer\Plugin\Block\Form; | ||
use Df\Customer\Session as Sess; | ||
use Magento\Customer\Block\Form\Register as Sb; | ||
use Magento\Framework\DataObject as _DO; | ||
final class Register { | ||
|
@@ -14,8 +15,7 @@ final class Register { | |
* @see \Df\Sso\CustomerReturn::execute() | ||
* https://github.com/mage2pro/core/blob/8473e12/Sso/CustomerReturn.php?ts=4#L54 | ||
* | ||
* 2) тестовыми данными (дополнительно к данным пункта 1) | ||
* при запуске Magento на моём локальном компьютере. | ||
* 2) тестовыми данными (дополнительно к данным пункта 1) при запуске Magento на моём локальном компьютере. | ||
* | ||
* Установить пароль здесь нет возможности, | ||
* потому что https://github.com/magento/magento2/blob/2.1.2/app/code/Magento/Customer/view/frontend/templates/form/register.phtml#L142-L148 | ||
|
@@ -28,7 +28,7 @@ final class Register { | |
* @return _DO | ||
*/ | ||
function afterGetFormData(Sb $sb, _DO $r) {return $r->setData($r->getData() | ||
+ df_eta(df_customer_session()->getDfSsoRegistrationData()) | ||
+ Sess::s()->ssoRegistrationData() | ||
+ (!df_my_local() ? [] : [ | ||
'dob' => '1982-07-08' | ||
,'email' => '[email protected]' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters