Forgottern password check account has been approved #3266

Closed
howdu opened this Issue Aug 23, 2015 · 0 comments

Projects

None yet

2 participants

@howdu
howdu commented Aug 23, 2015

No point sending out an email with false information telling the customer they can login if their account hasn't been approved yet.

Added to validate method: /catalog/controller/account/forgotten.php

$this->load->model('account/customer');

$customer_info = $this->model_account_customer->getCustomerByEmail($this->request->post['email']);

if ($customer_info && !$customer_info['approved']) {
    $this->error['warning'] = $this->language->get('error_approved');
}
@danielkerr danielkerr added a commit that referenced this issue Aug 24, 2015
@danielkerr danielkerr #3266 8282b75
@danielkerr danielkerr closed this Aug 24, 2015
@danielkerr danielkerr added a commit that referenced this issue Aug 24, 2015
@danielkerr danielkerr #3266 78cf038
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment