Skip to content

Commit

Permalink
chore: add failed security count on usesrs
Browse files Browse the repository at this point in the history
Signed-off-by: maxwellgithinji <maxwellgithinji@gmail.com>
  • Loading branch information
maxwellgithinji committed Mar 15, 2022
1 parent 0138259 commit 46e4ece
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
18 changes: 18 additions & 0 deletions mycarehub/clients/migrations/0028_servicerequest_ccc_number.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.11 on 2022-03-15 15:21

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('clients', '0027_alter_servicerequest_request_type'),
]

operations = [
migrations.AddField(
model_name='servicerequest',
name='ccc_number',
field=models.CharField(blank=True, max_length=36, null=True),
),
]
1 change: 1 addition & 0 deletions mycarehub/clients/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,3 +443,4 @@ class ServiceRequestStatus(models.TextChoices):
resolved_at = models.DateTimeField(null=True, blank=True)

facility = models.ForeignKey(Facility, null=True, blank=True, on_delete=models.SET_NULL)
ccc_number = models.CharField(max_length=36, null=True, blank=True)
18 changes: 18 additions & 0 deletions mycarehub/users/migrations/0019_user_failed_security_count.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.11 on 2022-03-15 11:38

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('users', '0018_termsofservice_flavour'),
]

operations = [
migrations.AddField(
model_name='user',
name='failed_security_count',
field=models.IntegerField(default=0),
),
]
1 change: 1 addition & 0 deletions mycarehub/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ class User(AbstractUser):
last_failed_login = DateTimeField(null=True, blank=True)
next_allowed_login = DateTimeField(default=timezone.now)
failed_login_count = IntegerField(default=0)
failed_security_count = IntegerField(default=0)
accepted_terms_of_service = ForeignKey(
TermsOfService, null=True, blank=True, on_delete=PROTECT
)
Expand Down

0 comments on commit 46e4ece

Please sign in to comment.