fixed api token

This commit is contained in:
denisdulici
2017-11-02 02:00:54 +03:00
parent d67b5e7746
commit dfac921e97
6 changed files with 52 additions and 47 deletions

View File

@ -10,20 +10,6 @@ class Home extends Controller
{
use Modules;
/**
* Instantiate a new controller instance.
*
* @param Route $route
*/
public function __construct(Route $route)
{
if (!setting('general.api_token')) {
return redirect('apps/token/create')->send();
}
parent::__construct($route);
}
/**
* Display a listing of the resource.
*
@ -31,6 +17,8 @@ class Home extends Controller
*/
public function index()
{
$this->checkApiToken();
$paid = $this->getPaidModules();
$new = $this->getNewModules();
$free = $this->getFreeModules();