summaryrefslogtreecommitdiff
path: root/app/Auth
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/Auth
parent06e9486c59831cdd1630647ea7474a39879a37da (diff)
Move token generation to Security namespace
Diffstat (limited to 'app/Auth')
-rw-r--r--app/Auth/RememberMe.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Auth/RememberMe.php b/app/Auth/RememberMe.php
index 0290e36c..24f30a2c 100644
--- a/app/Auth/RememberMe.php
+++ b/app/Auth/RememberMe.php
@@ -5,7 +5,7 @@ namespace Kanboard\Auth;
use Kanboard\Core\Base;
use Kanboard\Core\Request;
use Kanboard\Event\AuthEvent;
-use Kanboard\Core\Security;
+use Kanboard\Core\Security\Token;
/**
* RememberMe model
@@ -165,8 +165,8 @@ class RememberMe extends Base
*/
public function create($user_id, $ip, $user_agent)
{
- $token = hash('sha256', $user_id.$user_agent.$ip.Security::generateToken());
- $sequence = Security::generateToken();
+ $token = hash('sha256', $user_id.$user_agent.$ip.Token::getToken());
+ $sequence = Token::getToken();
$expiration = time() + self::EXPIRATION;
$this->cleanup($user_id);
@@ -216,7 +216,7 @@ class RememberMe extends Base
*/
public function update($token)
{
- $new_sequence = Security::generateToken();
+ $new_sequence = Token::getToken();
$this->db
->table(self::TABLE)