mirror of
https://github.com/chatmail/relay.git
synced 2026-05-14 09:54:38 +00:00
config: validate domains when formatting them
This commit is contained in:
@@ -297,7 +297,7 @@ def gencreds(chatmail_config):
|
||||
password = "".join(
|
||||
random.choices(alphanumeric, k=chatmail_config.password_min_length)
|
||||
)
|
||||
yield f"{user}@{addr_domain}", f"{password}"
|
||||
yield f"{user}@{domain}", f"{password}"
|
||||
|
||||
return lambda domain=None: next(gen(domain))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user