Commit ccc3dd4c authored by Michal Čihař's avatar Michal Čihař

Ensure anonymous user has email set

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 2ad9d3b3
......@@ -18,6 +18,7 @@ def add_anonymous_profile(apps, schema_editor):
defaults={
'is_active': False,
'password': make_password(None),
'email': 'noreply@weblate.org',
}
)[0]
guest_group = Group.objects.get_or_create(name='Guests')[0]
......
......@@ -963,6 +963,7 @@ def create_groups(update):
except User.DoesNotExist:
anon_user = User.objects.create(
username=ANONYMOUS_USER_NAME,
email='noreply@weblate.org',
is_active=False,
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment