diff --git a/framework/filters/auth/QueryParamAuth.php b/framework/filters/auth/QueryParamAuth.php index 4b143b0b75..d0066eb905 100644 --- a/framework/filters/auth/QueryParamAuth.php +++ b/framework/filters/auth/QueryParamAuth.php @@ -47,6 +47,6 @@ class QueryParamAuth extends AuthMethod */ public function handleFailure($response) { - throw new UnauthorizedHttpException('You are requesting with an invalid access token.'); + throw new UnauthorizedHttpException(Yii::t('yii', 'You are requesting with an invalid access token.')); } }