summaryrefslogtreecommitdiff
path: root/app/Helper/Form.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-25 15:05:19 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-25 15:05:19 -0400
commit6756ef2301a5f624941b947ec9effd34b467de9a (patch)
treec93fe266cdef7ceef2234bf1cde61b5c4b738084 /app/Helper/Form.php
parent06e9486c59831cdd1630647ea7474a39879a37da (diff)
Move token generation to Security namespace
Diffstat (limited to 'app/Helper/Form.php')
-rw-r--r--app/Helper/Form.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Helper/Form.php b/app/Helper/Form.php
index 5f19f2a8..bfd75ee3 100644
--- a/app/Helper/Form.php
+++ b/app/Helper/Form.php
@@ -2,7 +2,7 @@
namespace Kanboard\Helper;
-use Kanboard\Core\Security;
+use Kanboard\Core\Base;
/**
* Form helpers
@@ -10,7 +10,7 @@ use Kanboard\Core\Security;
* @package helper
* @author Frederic Guillot
*/
-class Form extends \Kanboard\Core\Base
+class Form extends Base
{
/**
* Hidden CSRF token field
@@ -20,7 +20,7 @@ class Form extends \Kanboard\Core\Base
*/
public function csrf()
{
- return '<input type="hidden" name="csrf_token" value="'.Security::getCSRFToken().'"/>';
+ return '<input type="hidden" name="csrf_token" value="'.$this->token->getCSRFToken().'"/>';
}
/**