Переделал мейлы
This commit is contained in:
parent
0b7f513187
commit
a1397f2f10
2 changed files with 108 additions and 102 deletions
|
@ -1,8 +1,8 @@
|
|||
from celery import Celery
|
||||
|
||||
|
||||
from app.config import settings
|
||||
|
||||
celery = Celery("tasks", broker=f"redis://{settings.REDIS_HOST}:{settings.REDIS_PORT}", include=["app.tasks.tasks"])
|
||||
|
||||
celery = Celery("tasks", broker=f"redis://{settings.REDIS_HOST}:{settings.REDIS_PORT}/1", include=["app.tasks.tasks"])
|
||||
|
||||
celery.conf.update(result_backend=f"redis://{settings.REDIS_HOST}:{settings.REDIS_PORT}")
|
||||
|
|
|
@ -41,9 +41,11 @@ def create_registration_confirmation_template(
|
|||
font-weight: 200;
|
||||
font-style: normal;
|
||||
font-stretch: normal;
|
||||
font-optical-sizing: auto;">
|
||||
font-optical-sizing: auto;
|
||||
">
|
||||
|
||||
<div style="display: flex;
|
||||
<div style="
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content:space-around;
|
||||
align-items: center;
|
||||
|
@ -59,29 +61,30 @@ def create_registration_confirmation_template(
|
|||
border-radius: 15px;
|
||||
">
|
||||
|
||||
<h1 style=" color:white;
|
||||
">Код подтверждения, {username}</h1>
|
||||
<div style="border: 1px solid transparent;
|
||||
background:
|
||||
linear-gradient(#101010, #101010) padding-box,
|
||||
linear-gradient(to bottom, #3C53FF, #7734AA) border-box;
|
||||
border-radius: 15px;">
|
||||
|
||||
<h2 style="color:white;
|
||||
padding:0 5px 0 5px;">{confirmation_code}</h2>
|
||||
</div>
|
||||
|
||||
<h1 style="color:white;">или</h1>
|
||||
|
||||
<a href="{confirmation_link}" style="border: 1px solid transparent;
|
||||
<h1 style="color:white;">Код подтверждения, {username}</h1>
|
||||
<div style="
|
||||
border: 1px solid transparent;
|
||||
background:
|
||||
linear-gradient(#101010, #101010) padding-box,
|
||||
linear-gradient(to bottom, #3C53FF, #7734AA) border-box;
|
||||
border-radius: 15px;
|
||||
text-decoration: none;">
|
||||
">
|
||||
|
||||
<h2 style="color: white;
|
||||
padding:0 5px 0 5px;">перейдите по ссылке</h2>
|
||||
<h2 style="color:white; padding:0 5px 0 5px;">{confirmation_code}</h2>
|
||||
</div>
|
||||
|
||||
<h1 style="color:white;">или</h1>
|
||||
|
||||
<a href="{confirmation_link}" style="
|
||||
border: 1px solid transparent;
|
||||
background:
|
||||
linear-gradient(#101010, #101010) padding-box,
|
||||
linear-gradient(to bottom, #3C53FF, #7734AA) border-box;
|
||||
border-radius: 15px;
|
||||
text-decoration: none;
|
||||
">
|
||||
|
||||
<h2 style="color: white; padding:0 5px 0 5px;">перейдите по ссылке</h2>
|
||||
</a>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -127,9 +130,11 @@ def create_data_change_confirmation_email(username: str, email_to: EmailStr, _:
|
|||
font-weight: 200;
|
||||
font-style: normal;
|
||||
font-stretch: normal;
|
||||
font-optical-sizing: auto;">
|
||||
font-optical-sizing: auto;
|
||||
">
|
||||
|
||||
<div style="display: flex;
|
||||
<div style="
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content:space-around;
|
||||
align-items: center;
|
||||
|
@ -145,16 +150,16 @@ def create_data_change_confirmation_email(username: str, email_to: EmailStr, _:
|
|||
border-radius: 15px;
|
||||
">
|
||||
|
||||
<h1 style=" color:white;
|
||||
">Код подтверждения, {username}</h1>
|
||||
<div style="border: 1px solid transparent;
|
||||
<h1 style="color:white;">Код подтверждения, {username}</h1>
|
||||
<div style="
|
||||
border: 1px solid transparent;
|
||||
background:
|
||||
linear-gradient(#101010, #101010) padding-box,
|
||||
linear-gradient(to bottom, #3C53FF, #7734AA) border-box;
|
||||
border-radius: 15px;">
|
||||
border-radius: 15px;
|
||||
">
|
||||
|
||||
<h2 style="color:white;
|
||||
padding:0 5px 0 5px;">{confirmation_code}</h2>
|
||||
<h2 style="color:white; padding:0 5px 0 5px;">{confirmation_code}</h2>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -200,9 +205,11 @@ def create_data_change_email(username: str, email_to: EmailStr):
|
|||
font-weight: 200;
|
||||
font-style: normal;
|
||||
font-stretch: normal;
|
||||
font-optical-sizing: auto;">
|
||||
font-optical-sizing: auto;
|
||||
">
|
||||
|
||||
<div style="display: flex;
|
||||
<div style="
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content:space-around;
|
||||
align-items: center;
|
||||
|
@ -218,8 +225,7 @@ def create_data_change_email(username: str, email_to: EmailStr):
|
|||
border-radius: 15px;
|
||||
">
|
||||
|
||||
<h1 style=" color:white;
|
||||
">{username} успешно поменял данные. УРА! УРА! УРА!!!</h1>
|
||||
<h1 style=" color:white;">{username} успешно поменял данные. УРА! УРА! УРА!!!</h1>
|
||||
</div>
|
||||
</body>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Reference in a new issue