Skip to content

Commit

Permalink
fix: some small fixes we found while live testing with the game (#82)
Browse files Browse the repository at this point in the history
* fix: RequestVerification token now uses GET method instead of POST.

* fix: remove references to deprecated persistence models
  • Loading branch information
corp-0 authored Feb 14, 2024
1 parent 67c858e commit 511357c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion src/accounts/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class RequestVerificationTokenView(APIView):
**Requires Token authentication**
"""

def post(self, *args, **kwargs):
def get(self, *args, **kwargs):
verification_token = uuid4()

try:
Expand Down
15 changes: 0 additions & 15 deletions src/persistence/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,6 @@ class Migration(migrations.Migration):
]

operations = [
migrations.CreateModel(
name='Other',
fields=[
('account', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='accounts.account')),
('other_data', models.JSONField(default=dict)),
],
),
migrations.CreateModel(
name='PolyPhrase',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('said_by', models.CharField(blank=True, default='Who knows?', max_length=28)),
('phrase', models.CharField(max_length=128)),
],
),
migrations.CreateModel(
name='Character',
fields=[
Expand Down

0 comments on commit 511357c

Please sign in to comment.