Enabled OAuth/OAuth2 logins
This commit is contained in:
27
modules/oauth/classes/Kohana/OAuth/Request/Exception.php
Normal file
27
modules/oauth/classes/Kohana/OAuth/Request/Exception.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php defined('SYSPATH') or die('No direct script access.');
|
||||
|
||||
class Kohana_OAuth_Request_Exception extends Kohana_OAuth_Exception {
|
||||
|
||||
/**
|
||||
* @var string response body
|
||||
*/
|
||||
protected $body;
|
||||
|
||||
public function __construct($message, array $variables = NULL, $code = 0, $body = NULL)
|
||||
{
|
||||
$this->body = $body;
|
||||
|
||||
return parent::__construct($message, $variables, $code);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the response body.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBody()
|
||||
{
|
||||
return $this->body;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user