0

How to override core Interface and Model file in magento2...

I need to remove current password in change password frontend section.In current password validate in \Magento\Customer\Controller\Account\EditPost Controller file and its call core interface also .How to remove this.

Edited: It does not solve my problem ..I want customise core api interface not to add additional functionality...Also AccountManagement.php does not have extension attribute

Mahi M
  • 2,540
  • 2
  • 36
  • 83
  • What research have you done? There are several ways to modify Magento's functionality, all of them documented here and on the Dev Docs. Check the DevDocs first, then come back here with specific questions. – ProcessEight Jul 19 '18 at 12:42
  • 1
    I need to remove current password in change password frontend section ..In current password validate in \Magento\Controller\Customer\EditPost Controller file and its call core interface also .How to remove this. – Mahi M Jul 19 '18 at 12:47
  • It does not solve my problem @TBS Mage...I want customise core api interface not to add additional functionality – Mahi M Jul 19 '18 at 13:01
  • I think you need override changePasswordForCustomer which is in Magento\Customer\Model\AccountManagement file and method only. – kunj Jul 19 '18 at 13:05
  • Yes...If i can override this model file and modified this function, then is it working for api? – Mahi M Jul 19 '18 at 13:10

0 Answers0