Disable registration by default

This commit is contained in:
Mouse Reeve 2022-02-17 11:27:05 -08:00
parent 23d0d3e2b7
commit 2883c42534
2 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,18 @@
# Generated by Django 3.2.12 on 2022-02-17 19:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bookwyrm', '0136_auto_20220217_1708'),
]
operations = [
migrations.AlterField(
model_name='sitesettings',
name='allow_registration',
field=models.BooleanField(default=False),
),
]

View file

@ -43,7 +43,7 @@ class SiteSettings(models.Model):
privacy_policy = models.TextField(default="Add a privacy policy here.")
# registration
allow_registration = models.BooleanField(default=True)
allow_registration = models.BooleanField(default=False)
allow_invite_requests = models.BooleanField(default=True)
require_confirm_email = models.BooleanField(default=True)