Answer the question
In order to leave comments, you need to log in
How to register without a password in Opencart?
There is the following task. Registration in opencart without password. The user indicates his mail, where the login data will be sent (in the future he will be able to change the password)
Answer the question
In order to leave comments, you need to log in
Do not accept a password from the user in the controller - generate it yourself and send it to the user...
catalog/controller/account/register.php
Rewrite
if (isset($this->request->post['password'])) {
$data['password'] = $this->request->post['password'];
} else {
$data['password'] = '';
}
$data['password'] = вами сгенерированный пароль
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question