From 0a0cedafd5de82a55a39d8eba044ad5740820d29 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Thu, 2 Jan 2020 11:37:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=84=E4=B8=AA=E7=B3=BB=E7=BB=9F=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=8F=90=E7=A4=BA=E5=AE=89=E5=85=A8=E4=BC=98=E5=8C=96?= =?UTF-8?q?=EF=BC=8Csessionon=5Fid=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/PublicController.class.php | 4 ++-- Application/Admin/Model/PromoteModel.class.php | 3 ++- Application/Admin/Model/UserModel.class.php | 1 + Application/Commerce/Controller/IndexController.class.php | 5 +++-- Application/Commerce/View/Index/login.html | 6 ------ Application/Home/Controller/IndexController.class.php | 4 ++-- Application/Home/View/default/Index/index.html | 6 ------ 7 files changed, 10 insertions(+), 19 deletions(-) diff --git a/Application/Admin/Controller/PublicController.class.php b/Application/Admin/Controller/PublicController.class.php index e4f5cf2d9..8f33357a2 100644 --- a/Application/Admin/Controller/PublicController.class.php +++ b/Application/Admin/Controller/PublicController.class.php @@ -41,10 +41,10 @@ class PublicController extends \Think\Controller } else { //登录失败 switch ($uid) { case -1: - $error = '用户不存在或被禁用!'; + $error = '账户或密码错误!'; break; //系统级别禁用 case -2: - $error = '密码错误!'; + $error = '账户或密码错误!'; break; default: $error = '未知错误!'; diff --git a/Application/Admin/Model/PromoteModel.class.php b/Application/Admin/Model/PromoteModel.class.php index b466da9a2..667295c06 100644 --- a/Application/Admin/Model/PromoteModel.class.php +++ b/Application/Admin/Model/PromoteModel.class.php @@ -159,7 +159,7 @@ class PromoteModel extends Model{ ); session('promote_auth', $auth); session('promote_auth_sign', data_auth_sign($auth)); - + session_regenerate_id(); } /** @@ -170,6 +170,7 @@ class PromoteModel extends Model{ session('promote_auth', null); session('promote_auth_sign', null); session('game_divide_second_pwd', null); + session_regenerate_id(); } /** diff --git a/Application/Admin/Model/UserModel.class.php b/Application/Admin/Model/UserModel.class.php index a791c59b3..810e32c31 100644 --- a/Application/Admin/Model/UserModel.class.php +++ b/Application/Admin/Model/UserModel.class.php @@ -816,6 +816,7 @@ class UserModel extends Model{ ); session($session_name, $auth); session($session_name.'_sign', data_auth_sign($auth)); + session_regenerate_id(); } /** *更新玩家信息 diff --git a/Application/Commerce/Controller/IndexController.class.php b/Application/Commerce/Controller/IndexController.class.php index a1e08c252..39ba497da 100644 --- a/Application/Commerce/Controller/IndexController.class.php +++ b/Application/Commerce/Controller/IndexController.class.php @@ -27,14 +27,14 @@ class IndexController extends \Think\Controller{ $map['account']=I('post.account'); $find=M('BusinessAffairs','tab_')->field('id,password')->where($map)->find(); if(null==$find){ - $this->ajaxReturn(array('status'=>-1,'msg'=>'账号不存在或被禁用!')); + $this->ajaxReturn(array('status'=>-1,'msg'=>'账号或密码错误!')); }else{ $User = new UserApi; if($find['password'] ==$this->think_ucenter_md5(I('post.pwd'), UC_AUTH_KEY)){ $this->save_login($find['id'],I('post.account')); $this->ajaxReturn(array('status'=>1,'msg'=>'登录成功')); }else{ - $this->ajaxReturn(array('status'=>-1,'msg'=>'密码错误')); + $this->ajaxReturn(array('status'=>-1,'msg'=>'账号或密码错误!')); } } } @@ -82,6 +82,7 @@ class IndexController extends \Think\Controller{ 'account' => $account, ); session('user_auth_commerce', $auth); + session_regenerate_id(); } /** diff --git a/Application/Commerce/View/Index/login.html b/Application/Commerce/View/Index/login.html index 20cacdf16..702e84185 100644 --- a/Application/Commerce/View/Index/login.html +++ b/Application/Commerce/View/Index/login.html @@ -91,11 +91,6 @@ username:{ required:true, rangelength:[6,15], - remote:{ - url: "{:U('Index/checkAccount')}", //后台处理程序 - type: "post", //数据发送方式 - data: {username:function() {return $("#username").val();}} - } }, password:{ required:true, @@ -109,7 +104,6 @@ username:{ required:"请输入管理员账号", rangelength:"账号必须是6~15位字符串", - remote:"账号不存在或被禁用", }, password:{ required:"请输入密码", diff --git a/Application/Home/Controller/IndexController.class.php b/Application/Home/Controller/IndexController.class.php index f91d6a4e6..95f3a5f8d 100644 --- a/Application/Home/Controller/IndexController.class.php +++ b/Application/Home/Controller/IndexController.class.php @@ -79,10 +79,10 @@ class IndexController extends HomeController $msg = ""; switch ($result) { case -1: - $msg = "账号不存在"; + $msg = "账号或密码错误!"; break; case -2: - $msg = "密码错误"; + $msg = "账号或密码错误!"; break; case -3: $msg = "账号被禁用,请联系管理员"; diff --git a/Application/Home/View/default/Index/index.html b/Application/Home/View/default/Index/index.html index 5d33666b3..578362aeb 100644 --- a/Application/Home/View/default/Index/index.html +++ b/Application/Home/View/default/Index/index.html @@ -165,11 +165,6 @@ required:true, rangelength:[6,100], numOrLetter:true, - remote:{ - url: "{:U('Index/isExistcheckAccount')}", //后台处理程序 - type: "post", //数据发送方式 - data: {account:function() {return $(".account").val();}}, - } }, password:{ required:true, @@ -185,7 +180,6 @@ account:{ required:"请输入登录账号", rangelength:"账号必须是6-15位字符串", - remote:"账号不存在或被锁定", }, password:{ required:"请输入登录密码",