Browse Source

removed token fixed time

tags/0.1.0
Robin Thoni 10 years ago
parent
commit
96399767c9
1 changed files with 0 additions and 1 deletions
  1. 0
    1
      src/Auth/Business/JwtHelper.php

+ 0
- 1
src/Auth/Business/JwtHelper.php View File

42
     {
42
     {
43
         $date = new \DateTime("now", new \DateTimeZone("Europe/Paris"));
43
         $date = new \DateTime("now", new \DateTimeZone("Europe/Paris"));
44
         $date->modify("+30 day");
44
         $date->modify("+30 day");
45
-        $date->setTime(0, 0, 0);
46
         $data[self::EXPIRATION_KEY] = $date->getTimestamp();
45
         $data[self::EXPIRATION_KEY] = $date->getTimestamp();
47
 
46
 
48
         return base64_encode(mcrypt_encrypt(MCRYPT_TRIPLEDES, env("MCRYPT_KEY"), \JWT::encode($data, env("JWT_KEY")), "ecb"));
47
         return base64_encode(mcrypt_encrypt(MCRYPT_TRIPLEDES, env("MCRYPT_KEY"), \JWT::encode($data, env("JWT_KEY")), "ecb"));

Loading…
Cancel
Save