瀏覽代碼

fix auth_token regeneration for calendar

PhilippeAccorsi 6 年之前
父節點
當前提交
33fa4a5646
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tracim/tracim/model/auth.py

+ 1 - 1
tracim/tracim/model/auth.py 查看文件

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