您现在的位置是:首页 > 教程 > ecshop商城教程ecshop商城教程
ecshop邮箱email用户名都可以登陆的实现方法
争赵2023-12-11 16:59:11ecshop商城教程已有人查阅
导读打开 /includes/modules/integrates/integrate.php 文件;function login($username, $password, $remember = null)
打开 /includes/modules/integrates/integrate.php 文件
找到
找到
function login($username, $password, $remember = null)
{
if ($this->check_user($username, $password) > 0)
改为
function login($username, $password, $remember = null)
{
if(!is_email($username))
{
$sql = "select ".$this->field_name." from ".$this->table($this->user_table)." where ".$this->field_email."='".$username."'";
$username = $this->db->getOne($sql);
if(!$username) return false;
//echo $sql;exit;
}
if ($this->check_user($username, $password) > 0)
本文标签:
很赞哦! ()
相关文章
随机图文
-
ecshop后台"云提醒未激活 点击激活" 补丁删除方法
ecshop后台提示"云提醒未激活 点击激活"删除方法,下面由代码号(www.ebingou.cn)教程为大家解答一下吧! -
ecshop4.1.8安装教程和配置要求介绍
代码号提供ecshop4.1.8安装教程,ecshop4.1.8安装无法连接数据库,ecshop安装手册,ecshop安装问题,ecshop安装后进不了,ecshop安装无法创建配置文件 -
ecshop商品二级分类与商品分类树都显示成一样效果
找到 category_tree.lbi 库文件;直接修改成实现此项功能,主要是修改模板文件:category_tree.lbi -
新ecshop商业授权多少钱,ecshop授权费用
代码号大家详细解说一下ECSHOP授权,ECSHOP商业授权,ECSHOP授权多少钱,ECSHOP授权费用,ECSHOP授权激活码,希望对大家有所帮助!
留言与评论 (共有 条评论) |