summaryrefslogtreecommitdiff
path: root/app/Model/Config.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model/Config.php')
-rw-r--r--app/Model/Config.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Model/Config.php b/app/Model/Config.php
index cf634f80..3b90f58d 100644
--- a/app/Model/Config.php
+++ b/app/Model/Config.php
@@ -3,7 +3,7 @@
namespace Kanboard\Model;
use Kanboard\Core\Translator;
-use Kanboard\Core\Security;
+use Kanboard\Core\Security\Token;
use Kanboard\Core\Session;
/**
@@ -265,7 +265,7 @@ class Config extends Setting
*/
public function regenerateToken($option)
{
- $this->save(array($option => Security::generateToken()));
+ $this->save(array($option => Token::getToken()));
}
/**