Sfoglia il codice sorgente

fix auth_token regeneration for calendar

PhilippeAccorsi 6 anni fa
parent
commit
33fa4a5646
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      tracim/tracim/model/auth.py

+ 1 - 1
tracim/tracim/model/auth.py Vedi File

@@ -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