I have created customer using following links:
- https://meetanshi.com/blog/create-customers-programmatically-in-magento-2/ OR
- How to add a customer programmatically in Magento 2?
The customer is created and I can see it in the customers list using admin account.
But I am unable to login into the storefront using the provided credentials which I used during programatically creation process. When I try to login, I get following error:
The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later.
I have a clue when I checked the database, but I could not find the actual issue. The clue is for the customer entry in customer_entity
table:
store_id
&website_id
is 0 while normal customers have non-zero value.created_in
column value is "Admin" while customer has value "Default store view".rp_token
andrp_token
columns contains NULL value while normal customer have some values.
I am unable to trace the exact issue. And suggest what should be the solution..
Thanks in advance!