Use FIRST_ALIAS_DOMAIN instead of EMAIL_DOMAIN when creating random alias
This commit is contained in:
parent
62017592e1
commit
ba5d71dd75
|
@ -656,9 +656,9 @@ def generate_email(
|
||||||
"""
|
"""
|
||||||
if scheme == AliasGeneratorEnum.uuid.value:
|
if scheme == AliasGeneratorEnum.uuid.value:
|
||||||
name = uuid.uuid4().hex if in_hex else uuid.uuid4().__str__()
|
name = uuid.uuid4().hex if in_hex else uuid.uuid4().__str__()
|
||||||
random_email = name + "@" + EMAIL_DOMAIN
|
random_email = name + "@" + FIRST_ALIAS_DOMAIN
|
||||||
else:
|
else:
|
||||||
random_email = random_words() + "@" + EMAIL_DOMAIN
|
random_email = random_words() + "@" + FIRST_ALIAS_DOMAIN
|
||||||
|
|
||||||
random_email = random_email.lower().strip()
|
random_email = random_email.lower().strip()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue