pzb %!s(int64=6) %!d(string=hai) anos
pai
achega
684e0e63ea
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Object/UrlTokenObject.py

+ 1 - 1
Object/UrlTokenObject.py

@@ -40,7 +40,7 @@ class UrlTokenObject:
     def generate(self, data={}):
         now_stamp = int(time.time())
         # print (now_stamp)
-        data['exp'] = 300 + now_stamp
+        data['exp'] = 7200 + now_stamp
         token = jwt.encode(data, '12345', algorithm='HS256').decode('utf-8')
         self.token=token
         return token