Browse Source

removed token fixed time

tags/0.1.0
Robin Thoni 8 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,7 +42,6 @@ class JwtHelper
42 42
     {
43 43
         $date = new \DateTime("now", new \DateTimeZone("Europe/Paris"));
44 44
         $date->modify("+30 day");
45
-        $date->setTime(0, 0, 0);
46 45
         $data[self::EXPIRATION_KEY] = $date->getTimestamp();
47 46
 
48 47
         return base64_encode(mcrypt_encrypt(MCRYPT_TRIPLEDES, env("MCRYPT_KEY"), \JWT::encode($data, env("JWT_KEY")), "ecb"));

Loading…
Cancel
Save