Skip to content

Commit

Permalink
Generate more complex tokens using timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
VirginiaDooley committed Jul 3, 2024
1 parent 5322d90 commit eca7223
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wcivf/apps/feedback/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import time
import uuid

from django.conf import settings
Expand All @@ -18,7 +19,8 @@


def generate_feedback_token():
return uuid.uuid4().hex
timestamp = str(int(time.time()))
return timestamp + uuid.uuid4().hex


class Feedback(TimeStampedModel):
Expand Down

0 comments on commit eca7223

Please sign in to comment.