Hi,
To allow you to use the Admin Password to change a customer's password once you have logged in as them using the Encrypted Master Password mod you'll need to do the following....
1. You have to change includes\modules\pages\account_password\header_php.php so make a back up of it first. Overrides do not work with it so you'll have to change the core code.
2. Open up includes\modules\pages\account_password\header_php.php and at about line 50 you will see...
PHP Code:
if (zen_validate_password($password_current, $check_customer->fields['customers_password'])) {
3. Change it to read....
PHP Code:
// *** start Encrypted Master Password ***
$get_admin_query = "SELECT admin_id, admin_pass
FROM " . TABLE_ADMIN . "
WHERE admin_id = '1' ";
$check_administrator = $db->Execute($get_admin_query);
if (zen_validate_password($password_current, $check_customer->fields['customers_password']) ||
zen_validate_password($password_current, $check_administrator->fields['admin_pass'])) {
4. Upload the changed file to your website.
Once logged in as the customer you should now be able to change the password using the admin password as the current password.
Hope that helps.
Regards,
Christian.
Bookmarks