mirror of
https://github.com/elyby/accounts.git
synced 2024-11-08 01:34:32 +05:30
23 lines
431 B
PHP
23 lines
431 B
PHP
<?php
|
|
namespace api\components\OAuth2\Exception;
|
|
|
|
use League\OAuth2\Server\Exception\OAuthException;
|
|
|
|
class AcceptRequiredException extends OAuthException {
|
|
|
|
public $httpStatusCode = 401;
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public $errorType = 'accept_required';
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function __construct() {
|
|
parent::__construct('Client must accept authentication request.');
|
|
}
|
|
|
|
}
|