|
|
@@ -11,6 +11,7 @@ use backendApi\modules\v1\models\AdminForm;
|
|
|
use backendApi\modules\v1\models\LoginForm;
|
|
|
use backendApi\modules\v1\models\User;
|
|
|
use common\helpers\Form;
|
|
|
+use common\helpers\LoggerTool;
|
|
|
use Yii;
|
|
|
use yii\web\HttpException;
|
|
|
|
|
|
@@ -57,6 +58,8 @@ class OauthController extends BaseController
|
|
|
$token = Yii::$app->getUser()->getToken();
|
|
|
return static::notice($token);
|
|
|
} else {
|
|
|
+ LoggerTool::debug(json_encode(['actionLoginErr', Yii::$app->request->post()]));
|
|
|
+
|
|
|
$firstError = $model->getFirstError('LoginForm');
|
|
|
if( $firstError === LoginForm::ERROR_IS_MODIFY_PASSWORD ) {
|
|
|
return static::notice(LoginForm::ERROR_IS_MODIFY_PASSWORD, 403);
|