Explorar el Código

fix auth_token regeneration for calendar

PhilippeAccorsi hace 6 años
padre
commit
33fa4a5646
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tracim/tracim/model/auth.py

+ 1 - 1
tracim/tracim/model/auth.py Ver fichero

@@ -311,7 +311,7 @@ class User(DeclarativeBase):
311 311
         difference = now_seconds - auth_token_seconds
312 312
 
313 313
         if difference > validity_seconds:
314
-            self.auth_token = uuid.uuid4()
314
+            self.auth_token = str(uuid.uuid4())
315 315
             self.auth_token_created = datetime.utcnow()
316 316
             DBSession.flush()
317 317