I am using magento 2.3.1 and i am trying to register customer from frontend and i am getting following error "The customer email is missing. Enter and try again."
when i try to check in
Magento\Customer\Model\ResourceModel\Customer doesnt getting email id. i am getting following error when i print the customer object
Array ( [created_in] => The XXXXXX XXXXX Store [email] => [firstname] => pradeep [lastname] => sanku [store_id] => 1 [website_id] => 1 [addresses] => Array ( ) [entity_id] => [password_hash] => c230dfa79aedee32b5d1d4645977a806be7bb4bfd0689c120930bdb1a45c2e6e:w4cmFyPTPkTsTYTlH0vSOMQIjNzW3kFJ:1 [parent_id] => 0 )
Note:- i had debugged more and landed at
Magento\Customer\Model\AccountManagement.php :: public function createAccount(CustomerInterface $customer, $password = null, $redirectUrl = '')
in this function
$customerEmail = $customer->getEmail(); this variable is coming empty.