Skip to content

Commit

Permalink
Make token more unique to avoid conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
VirginiaDooley committed Jun 7, 2023
1 parent ff8eae3 commit 9a91118
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wcivf/apps/feedback/forms.py
Expand Up @@ -8,7 +8,8 @@
class FeedbackForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(FeedbackForm, self).__init__(*args, **kwargs)
self.fields["token"].initial = uuid.uuid4().hex
hashed_token = hash(uuid.uuid4().hex)
self.fields["token"].initial = hashed_token

class Meta:
model = Feedback
Expand Down

0 comments on commit 9a91118

Please sign in to comment.