Browse Source

fix auth_token regeneration for calendar

PhilippeAccorsi 6 years ago
parent
commit
33fa4a5646
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tracim/tracim/model/auth.py

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

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