From 52b9ed47b0444c1637495c22bce7938879d7c595 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 20 Jan 2020 23:04:42 +0800 Subject: [PATCH] update --- app/Http/Controllers/Passport/LoginController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Passport/LoginController.php b/app/Http/Controllers/Passport/LoginController.php index c9c5ba9d..a261d11f 100755 --- a/app/Http/Controllers/Passport/LoginController.php +++ b/app/Http/Controllers/Passport/LoginController.php @@ -24,7 +24,7 @@ class LoginController extends Controller abort(500, '用户名或密码错误'); } - if (!$user->enable) { + if ($user->banned) { abort(500, '该账户已被停止使用'); }