Skip to content

Commit eca7223

Browse files
Generate more complex tokens using timestamps
1 parent 5322d90 commit eca7223

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

wcivf/apps/feedback/models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import time
12
import uuid
23

34
from django.conf import settings
@@ -18,7 +19,8 @@
1819

1920

2021
def generate_feedback_token():
21-
return uuid.uuid4().hex
22+
timestamp = str(int(time.time()))
23+
return timestamp + uuid.uuid4().hex
2224

2325

2426
class Feedback(TimeStampedModel):

0 commit comments

Comments
 (0)