mirror of
https://github.com/simple-login/app.git
synced 2024-09-21 07:25:59 +08:00
Make MAX_NB_EMAIL_FREE_PLAN available in all email templates
This commit is contained in:
parent
d9d22a56e2
commit
a548c84694
|
@ -22,6 +22,7 @@ from app.config import (
|
|||
ALIAS_DOMAINS,
|
||||
SUPPORT_NAME,
|
||||
POSTFIX_SUBMISSION_TLS,
|
||||
MAX_NB_EMAIL_FREE_PLAN,
|
||||
)
|
||||
from app.log import LOG
|
||||
from app.models import Mailbox, User
|
||||
|
@ -33,7 +34,7 @@ def render(template_name, **kwargs) -> str:
|
|||
|
||||
template = env.get_template(template_name)
|
||||
|
||||
return template.render(**kwargs)
|
||||
return template.render(MAX_NB_EMAIL_FREE_PLAN=MAX_NB_EMAIL_FREE_PLAN, **kwargs)
|
||||
|
||||
|
||||
def send_welcome_email(user):
|
||||
|
|
Loading…
Reference in a new issue