Update QueryParamAuth.php

translate exception message
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
Raeef Refai
2014-07-02 06:20:17 +03:00
gitea-unlock(16/)
parent 05e21b7291
commit dd3a503298

2
framework/filters/auth/QueryParamAuth.php
View File

@@ -47,6 +47,6 @@ class QueryParamAuth extends AuthMethod
*/ */
public function handleFailure($response) 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.'));
} }
} }