This commit is contained in:
Tokumeikoi
2020-03-02 20:29:17 +08:00
parent c8cb1f8e83
commit 47686d50c5
6 changed files with 48 additions and 60 deletions

View File

@ -112,7 +112,7 @@ class AuthController extends Controller
abort(500, '用户名或密码错误');
}
if (!$user->enable) {
if ($user->banned) {
abort(500, '该账户已被停止使用');
}
@ -159,7 +159,7 @@ class AuthController extends Controller
if (!$user) {
abort(500, '用户不存在');
}
if (!$user->enable) {
if ($user->banned) {
abort(500, '该账户已被停止使用');
}
$request->session()->put('email', $user->email);