1

Where would i be able to find the message that appears when a customer enters a wrong password when they try to log in, I have already looked in validation.js but i couldn't find it.

Thank you

1 Answer 1

2

The request is processing by customer account controller Mage_Customer_AccountController::loginPostAction(). File location is

app/code/core/Mage/Customer/controllers/AccountController.php

Dig from here. I think the error that is generated when password do not match in customer model. ie Mage_Customer_Model_Customer::authenticate(). There you can see this part

File: app/code/core/Mage/Customer/Model/Customer.php

 if (!$this->validatePassword($password)) {
            throw Mage::exception('Mage_Core', Mage::helper('customer')->__('Invalid login or password.'),
                self::EXCEPTION_INVALID_EMAIL_OR_PASSWORD
 }

Dig more with this info

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.