it should be MASTODON_ALLOW_ANY_SITE
This commit is contained in:
parent
506f94229a
commit
afca07c92a
2 changed files with 2 additions and 2 deletions
|
@ -259,7 +259,7 @@ SYNC_FILE_PATH_ROOT = "sync/"
|
|||
EXPORT_FILE_PATH_ROOT = "export/"
|
||||
|
||||
# Allow user to login via any Mastodon/Pleroma sites
|
||||
ALLOW_ANY_SITE = False
|
||||
MASTODON_ALLOW_ANY_SITE = False
|
||||
|
||||
# Allow user to create account with email (and link to Mastodon account later)
|
||||
ALLOW_EMAIL_ONLY_ACCOUNT = False
|
||||
|
|
|
@ -17,7 +17,7 @@ def move_username(apps, schema_editor):
|
|||
def clear_username(apps, schema_editor):
|
||||
User = apps.get_model("users", "User")
|
||||
for u in User.objects.all():
|
||||
u.username = None if settings.ALLOW_ANY_SITE else u.mastodon_username
|
||||
u.username = None if settings.MASTODON_ALLOW_ANY_SITE else u.mastodon_username
|
||||
u.save()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue