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, '该账户已被停止使用'); }