Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Sep 27, 2023
1 parent 634d13e commit 4db8b56
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 100 deletions.
182 changes: 88 additions & 94 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Generated by Django 3.2.20 on 2023-09-27 11:23
# Generated by Django 3.2.20 on 2023-09-27 13:23

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import pyotp


class Migration(migrations.Migration):
Expand All @@ -22,7 +21,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='userprofile',
name='otp_secret',
field=models.CharField(default=pyotp.random_base32, max_length=40),
field=models.CharField(max_length=40, null=True),
),
migrations.AlterField(
model_name='userprofile',
Expand Down
3 changes: 1 addition & 2 deletions cfl_common/common/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from uuid import uuid4

import pgeocode
import pyotp
from django.contrib.auth.models import User
from django.db import models
from django.utils import timezone
Expand All @@ -19,7 +18,7 @@ class UserProfile(models.Model):
on_delete=models.CASCADE,
)

otp_secret = models.CharField(max_length=40, default=pyotp.random_base32)
otp_secret = models.CharField(max_length=40, null=True)
last_otp_for_time = models.DateTimeField(null=True)
developer = models.BooleanField(default=False)
is_verified = models.BooleanField(default=False)
Expand Down
1 change: 0 additions & 1 deletion cfl_common/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"django-countries==7.3.1",
"pyjwt==2.6.0",
"pgeocode==0.4.0",
"pyotp==2.9.0",
],
tests_require=[],
test_suite="tests",
Expand Down

0 comments on commit 4db8b56

Please sign in to comment.