Showing
2 changed files
with
5 additions
and
2 deletions
@@ -38,7 +38,9 @@ class Controller_Login extends Controller_Abstract | @@ -38,7 +38,9 @@ class Controller_Login extends Controller_Abstract | ||
38 | $data['list'] = Facade_Auth::getAllAuth($result['uid']); | 38 | $data['list'] = Facade_Auth::getAllAuth($result['uid']); |
39 | } | 39 | } |
40 | return $this->returnJson($result['code'], $data,$result['message']); | 40 | return $this->returnJson($result['code'], $data,$result['message']); |
41 | - } | 41 | + }else{ |
42 | + file_put_contents('/tmp/sso-'.date('Y-m-d').'.log', '登录错误['.date('H:i:s').']-账户:'.$account.' 密码:'.$password.' 地区码:'.$area."\n", FILE_APPEND); | ||
43 | + } | ||
42 | return $this->returnJson($result['code'], array(), $result['message']); | 44 | return $this->returnJson($result['code'], array(), $result['message']); |
43 | } | 45 | } |
44 | } | 46 | } |
@@ -606,7 +606,8 @@ class Facade_Auth | @@ -606,7 +606,8 @@ class Facade_Auth | ||
606 | //检测口令是否存在 | 606 | //检测口令是否存在 |
607 | if (!$auth) | 607 | if (!$auth) |
608 | { | 608 | { |
609 | - $ret = array('code' => Config_Code::$error['user_not_exist']['code'], 'message' => Config_Code::$error['user_not_exist']['message']); | 609 | + file_put_contents('/tmp/sso-'.date('Y-m-d').'.log', '登录Facade错误['.date('H:i:s').']-账户:'.$account.' 类型:'.$auth_type.' 地区码:'.$area."\n", FILE_APPEND); |
610 | + $ret = array('code' => Config_Code::$error['user_not_exist']['code'], 'message' => Config_Code::$error['user_not_exist']['message']); | ||
610 | break ; | 611 | break ; |
611 | } | 612 | } |
612 | $uid = $auth['uid'] ; | 613 | $uid = $auth['uid'] ; |
-
Please register or login to post a comment