|
|
@@ -47,9 +47,7 @@ class BaseController extends \yii\rest\ActiveController {
|
|
|
*/
|
|
|
public function beforeAction($action) {
|
|
|
$this->forbiddenQuicklyUser();
|
|
|
- if ((new IpFilter())->frontApiCheck()) {
|
|
|
- throw new ForbiddenHttpException('账号或者密码错误');
|
|
|
- }
|
|
|
+ (new IpFilter())->frontApiCheck();
|
|
|
|
|
|
// 增加的判断用户登录后未操作后的超时 和 快速登录的逻辑
|
|
|
$isQuickly = User::isQuicklyLogin();
|