1
0
Fork 0

prepare for 2FA

- add and migrate User fields for 2FA
- add views for 2FA
- add new forms for 2FA
- update package list in requirements.txt
- add URLs for 2FA views
This commit is contained in:
Hugh Rundle 2022-09-11 13:48:52 +10:00
parent fed6bcd375
commit 54daade9f9
7 changed files with 179 additions and 0 deletions

View file

@ -0,0 +1,28 @@
# Generated by Django 3.2.15 on 2022-09-11 00:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("bookwyrm", "0157_auto_20220909_2338"),
]
operations = [
migrations.AddField(
model_name="user",
name="htop_count",
field=models.IntegerField(blank=True, default=0, null=True),
),
migrations.AddField(
model_name="user",
name="otp_secret",
field=models.CharField(blank=True, default=None, max_length=32, null=True),
),
migrations.AddField(
model_name="user",
name="two_factor_auth",
field=models.BooleanField(blank=True, default=None, null=True),
),
]