Commit 03233713d6e5c2ae5f99ab13464a77a6d0ca3418

Authored by zhang
1 parent 7bffbde8

[留言板]前端用户登录接口优化

trunk/Message/Api/Controller/Person/LoginController.class.php
... ... @@ -17,7 +17,7 @@ class LoginController extends AbstractController
17 17 * @author <362431947@qq.com>
18 18 * @date 2018-10-09
19 19 */
20   - public function Login_post()
  20 + public function Index_post()
21 21 {
22 22 $input = I('post.');
23 23  
... ... @@ -40,21 +40,12 @@ class LoginController extends AbstractController
40 40 $m_person = new PersonModel();
41 41 $user_info = $m_person->getUserByConds($conds);
42 42  
43   -
44 43 $auth_login = false;
45 44 if($user_info){
46 45 $auth_login = true;
47 46 }
48 47  
49 48 $this->_result = $auth_login;
50   -
51   - if ($auth_login) {
52   -
53   - redirect("http://127.0.0.1/message/list.php");
54   - }
55   - else {
56   - redirect("http://127.0.0.1/message/login_error.php");
57   - }
58 49 }
59 50  
60 51 }
... ...