D
D
DeniSidorenko2020-05-12 06:22:40
opencart
DeniSidorenko, 2020-05-12 06:22:40

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

1 answer(s)
P
Pavel, 2020-05-12
@DeniSidorenko

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'] = '';
    }

to something like And then you can send a registration letter ...
$data['password'] = вами сгенерированный пароль

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question