Skip to content

Commit

Permalink
feat: add pin update required
Browse files Browse the repository at this point in the history
Signed-off-by: maxwellgithinji <maxwellgithinji@gmail.com>
  • Loading branch information
maxwellgithinji authored and Salaton committed Mar 18, 2022
1 parent 5d49b72 commit c3d81c5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions mycarehub/users/migrations/0020_user_pin_update_required.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.11 on 2022-03-18 10:10

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('users', '0019_user_failed_security_count'),
]

operations = [
migrations.AddField(
model_name='user',
name='pin_update_required',
field=models.BooleanField(blank=True, default=False, null=True),
),
]
1 change: 1 addition & 0 deletions mycarehub/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class User(AbstractUser):
has_set_pin = BooleanField(default=False, blank=True, null=True)
is_phone_verified = BooleanField(default=False, blank=True, null=True)
has_set_security_questions = BooleanField(default=False, blank=True, null=True)
pin_update_required = BooleanField(default=False, blank=True, null=True)

@property
def permissions(self):
Expand Down

0 comments on commit c3d81c5

Please sign in to comment.