diff --git a/controllers/config.php b/controllers/config.php index bf5ffaa..d4a4b50 100644 --- a/controllers/config.php +++ b/controllers/config.php @@ -89,7 +89,7 @@ Router\get_action('generate-tokens', function() { Model\Config\new_tokens(); } - Response\redirect('?action=api'); + Response\redirect('?action=config'); }); // Optimize the database manually @@ -204,7 +204,6 @@ Router\get_action('database', function() { Router\get_action('api', function() { Response\html(Template\layout('api', array( - 'csrf' => Model\Config\generate_csrf(), 'config' => Model\Config\get_all(), 'menu' => 'config', 'title' => t('API') diff --git a/templates/api.php b/templates/api.php index 56c8919..e5fea5a 100644 --- a/templates/api.php +++ b/templates/api.php @@ -23,7 +23,6 @@
  • -
  • diff --git a/templates/config.php b/templates/config.php index 1b2326c..5362b7a 100644 --- a/templates/config.php +++ b/templates/config.php @@ -75,6 +75,7 @@