Magento Override – MODEL

Many times when we are working on Magento website development, it happens that we are required to edit the existing features of Magento core class or to add some custom features due to the requirement of Magento customization by customer. That time, overriding feature of Magento comes to our help.

Lets see this with an example. In this example we will be extending the User Model and overriding its authenticate function / method. By doing this it will allow the admin to login without having the password.

** Note: Please, don’t try to put this code in your live website since it may affect the security of your Magento website. We have taken this example just for the learning purpose.