Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forgottern password check account has been approved #3266

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

Comments

Projects
None yet
2 participants
@howdu
Copy link
Contributor

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 added a commit that referenced this issue Aug 24, 2015

@danielkerr danielkerr closed this Aug 24, 2015

danielkerr added a commit that referenced this issue Aug 24, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.