mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-12 10:45:38 +02:00
Save user email domain_name as idna representation
This commit is contained in:
parent
c40e255f3b
commit
792c720c13
@ -165,7 +165,7 @@ class Email(object):
|
||||
def email(cls):
|
||||
updater = lambda context: "{0}@{1}".format(
|
||||
context.current_parameters["localpart"],
|
||||
context.current_parameters["domain_name"],
|
||||
idna.encode(context.current_parameters["domain_name"]).decode('ascii'),
|
||||
)
|
||||
return db.Column(db.String(255, collation="NOCASE"),
|
||||
primary_key=True, nullable=False,
|
||||
|
Loading…
Reference in New Issue
Block a user