songxingwei 4 年之前
父節點
當前提交
0f5046acec
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/school/controller/Login.php

+ 1 - 1
app/school/controller/Login.php

@@ -64,7 +64,7 @@ class Login extends Controller
                 $this->error('图形验证码验证失败,请重新输入!');
             }
             /*! 用户信息验证 */
-            $map = ['username' => $data['username']];
+            $map = ['username' => $data['username'],'is_deleted'=>'0'];
             $user = $this->app->db->name('School2')->where($map)->order('id desc')->find();
             if (empty($user)) {
                 $this->app->session->set("login_input_session_error", true);