mirror of
https://github.com/simple-login/app.git
synced 2024-09-30 05:31:30 +02: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,
|
ALIAS_DOMAINS,
|
||||||
SUPPORT_NAME,
|
SUPPORT_NAME,
|
||||||
POSTFIX_SUBMISSION_TLS,
|
POSTFIX_SUBMISSION_TLS,
|
||||||
|
MAX_NB_EMAIL_FREE_PLAN,
|
||||||
)
|
)
|
||||||
from app.log import LOG
|
from app.log import LOG
|
||||||
from app.models import Mailbox, User
|
from app.models import Mailbox, User
|
||||||
@ -33,7 +34,7 @@ def render(template_name, **kwargs) -> str:
|
|||||||
|
|
||||||
template = env.get_template(template_name)
|
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):
|
def send_welcome_email(user):
|
||||||
|
Loading…
Reference in New Issue
Block a user