This commit is contained in:
root 2020-01-20 20:12:13 +08:00
parent 0675268a16
commit 6d76e30299

View File

@ -70,7 +70,7 @@ class LoginController extends Controller
if (!$user) {
abort(500, '用户不存在');
}
if (!$user->enable) {
if ($user->banned) {
abort(500, '该账户已被停止使用');
}
$request->session()->put('email', $user->email);