Selaa lähdekoodia

removed token fixed time

tags/0.1.0
Robin Thoni 9 vuotta sitten
vanhempi
commit
96399767c9
1 muutettua tiedostoa jossa 0 lisäystä ja 1 poistoa
  1. 0
    1
      src/Auth/Business/JwtHelper.php

+ 0
- 1
src/Auth/Business/JwtHelper.php Näytä tiedosto

@@ -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…
Peruuta
Tallenna