php - Magento 2 send data from Login to Registration -


how can send login data (like email) create account form? tried not worked:

$data = $this->_view->getlayout()->createblock('magento\customer\block\account\customer'); $data->setdata('form_data', ['email' => $login['username']]); $data->setdata('email', $login['username']); 

and this:

$item = $this->_objectmanager->create('\magento\customer\block\form\register'); $item->setdata('form_data', ['email' => $resp->username]); $item->setdata('email', $resp->username); 

i put code {mymodule}\controller\account\loginpost.php execute method. i'd set default value on registration form login email.

thank help!

you can go template file of registration form can directly print value in input text field.

if still not working, share screenshot if possible.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -