Use FIRST_ALIAS_DOMAIN instead of EMAIL_DOMAIN when creating random alias

This commit is contained in:
Son NK 2020-05-26 09:07:36 +02:00
parent 62017592e1
commit ba5d71dd75
1 changed files with 2 additions and 2 deletions

View File

@ -656,9 +656,9 @@ def generate_email(
"""
if scheme == AliasGeneratorEnum.uuid.value:
name = uuid.uuid4().hex if in_hex else uuid.uuid4().__str__()
random_email = name + "@" + EMAIL_DOMAIN
random_email = name + "@" + FIRST_ALIAS_DOMAIN
else:
random_email = random_words() + "@" + EMAIL_DOMAIN
random_email = random_words() + "@" + FIRST_ALIAS_DOMAIN
random_email = random_email.lower().strip()