| xqd
@@ -83,9 +83,9 @@ class AuthController extends Controller
|
|
|
return $this->error('账号不存在');
|
|
|
}
|
|
|
// 账号是否禁用
|
|
|
-// if($user->status == 0){
|
|
|
-// return $this->error('账号已被禁用!');
|
|
|
-// }
|
|
|
+ if($user->status == 0){
|
|
|
+ return $this->error('账号已被禁用!');
|
|
|
+ }
|
|
|
$credentials1 = ['account' => $account, 'password' => $password];
|
|
|
if (!auth('api')->attempt($credentials1)) {
|
|
|
return $this->error('密码错误!');
|