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:
parent
fed6bcd375
commit
54daade9f9
7 changed files with 179 additions and 0 deletions
28
bookwyrm/migrations/0158_auto_20220911_0008.py
Normal file
28
bookwyrm/migrations/0158_auto_20220911_0008.py
Normal 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),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue