【发布时间】:2016-03-09 04:39:03
【问题描述】:
我使用的是 OpenCart 2.x 版本。如何从 UI 而不是从数据库重置管理员密码?我找到了一些使用数据库用户表的解决方案,但我不想那样做。
实际上,这在安装后不起作用,那么有人可以告诉我 OpenCart 是否没有为管理员提供忘记密码功能吗?
【问题讨论】:
-
它有这个功能。
-
得到的解决方案需要对这一行进行 cmets: if (!$this->config->get('config_password')) { $this->response->redirect($this->url->链接('普通/登录','','SSL')); } from admin/controller/common/forgotten.php.and 也替换一行 $message .= $this->url->link('common/reset', 'code=' . $code, 'SSL') 。 "\n\n";使用 .$message .= $this->url->link('common/reset&code=' . $code, 'SSL') 行。 "\n\n";并且还需要注释 .if (!$this->config->get('config_password')) { $this->response->redirect($this->url->link('common/login', '' , 'SSL')); } 在脚本 admin/controller/common/reset.php
标签: php opencart2.x