소스 검색

[智价云] 登录移除手机验证

tangyuanwang 5 시간 전
부모
커밋
25c4f16bd9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Http/Controllers/Manager/Login.php

+ 1 - 1
app/Http/Controllers/Manager/Login.php

@@ -35,7 +35,7 @@ class Login extends Manager
 		// 接收数据
 		$password    = $Request->input('password', '');
 		// 查询用户
-		$admin    	= $AdminUser->orWhere('username', $username)->orWhere('phone', $username)->first(['uid', 'username', 'phone', 'status', 'password', 'insert_time', 'update_time']);
+		$admin    	= $AdminUser->orWhere('username', $username)->first(['uid', 'username', 'phone', 'status', 'password', 'insert_time', 'update_time']);
 		// 用户不存在
 		if (!$admin || $admin['status'])	return json_send(['code' => 'error', 'msg' => '密码错误或账号不存在']);
 		// 用户不存在