I get customers with an interface in to my Magento 2.1.
They are stored with a placeholder email. In my controller I update the mail address and want to set confirmation, so that the customer has to confirm his email on login.
$customer->setEmail($email); $customer->setConfirmation(true); //$customer->setConfirmation("Random-string"); //Did not work too $this->_customerRepository->save($customer);
The email is updated but the confirmation flag is still
NULL in the DB. How can I update it?