mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-17 02:29:46 +05:30
Removed line break in error messages
This commit is contained in:
parent
c29340ae27
commit
7b9899c46b
@ -34,8 +34,7 @@ class InvalidGrantException extends OAuthException
|
|||||||
{
|
{
|
||||||
parent::__construct(
|
parent::__construct(
|
||||||
sprintf(
|
sprintf(
|
||||||
'The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used
|
'The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client. Check the "%s" parameter.',
|
||||||
in the authorization request, or was issued to another client. Check the "%s" parameter.',
|
|
||||||
$parameter
|
$parameter
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -34,8 +34,7 @@ class InvalidRequestException extends OAuthException
|
|||||||
{
|
{
|
||||||
parent::__construct(
|
parent::__construct(
|
||||||
sprintf(
|
sprintf(
|
||||||
'The request is missing a required parameter, includes an invalid parameter value, includes a parameter
|
'The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Check the "%s" parameter.',
|
||||||
more than once, or is otherwise malformed. Check the "%s" parameter.',
|
|
||||||
$parameter
|
$parameter
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -31,8 +31,7 @@ class ServerErrorException extends OAuthException
|
|||||||
*/
|
*/
|
||||||
public function __construct($parameter = null)
|
public function __construct($parameter = null)
|
||||||
{
|
{
|
||||||
$parameter = is_null($parameter) ? 'The authorization server encountered an unexpected condition which prevented
|
$parameter = is_null($parameter) ? 'The authorization server encountered an unexpected condition which prevented it from fulfilling the request.' : $parameter;
|
||||||
it from fulfilling the request.' : $parameter;
|
|
||||||
parent::__construct($parameter);
|
parent::__construct($parameter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user