magento / community-features

Magento Features Development is an Initiative to Allows Community Memebers Join to Development of Magento Features
46 stars 18 forks source link

Customer entity the field is_active is not working #36

Open magento-engcom-team opened 6 years ago

magento-engcom-team commented 6 years ago

I'm trying to lock some customers for they not being able to login neither place orders, etc. There is a field named is_active on the table customer_entity, but seems it does nothing.

Preconditions

  1. Magento 2.1.7
  2. PHP 7.0.18
  3. MySQL 5.7.18

Steps to reproduce

  1. Create a new customer
  2. Set is_active=0 on the table customer_entity in the ddbb manually for this customer
  3. Login with the customer's credentials.

Expected result

  1. It should deny the login, showing some error like this account is blocked or simply credentials are wrong.

Actual result

  1. It logged in successfully

Original Report: https://github.com/magento/magento2/issues/10362 by @slayerbleast

rohansh89 commented 6 years ago

I am also trying to use this feature to disable some address to display during checkout. If I have 5 address list. I want to disable one. I did is_active=0 manually. but no change in checkout dropdown. why magento is created half baked thing?

bpicho commented 6 years ago

I would like to develop this feature, could I ask you to assign me to this issue?

WaPoNe commented 5 years ago

Any news? In Magento 2.2.7 version this _customerentity table field continues to exist without meaning..

vdubyna commented 5 years ago

In magento 2.3.4 issue still exists, when you save the customer without any changes it triggers the save but should not. Snapshot does not equal Entity because is_active is not loaded in the entity as it is not in the interface. As a result we get extra save to DB.