diff --git a/app/services/user_service.py b/app/services/user_service.py index 299e5c1..0e8b426 100644 --- a/app/services/user_service.py +++ b/app/services/user_service.py @@ -1,3 +1,4 @@ +import logging from datetime import timedelta from pydantic import ValidationError @@ -75,6 +76,7 @@ class UserService: verification_code = await redis.get_value(key=f"user_verification_code: {user.id}") except AttributeError: raise WrongCodeException + logging.warning(verification_code) if verification_code != confirmation_code: raise WrongCodeException async with uow: diff --git a/app/tasks/email_templates.py b/app/tasks/email_templates.py index 6b5b74d..bd8c57f 100644 --- a/app/tasks/email_templates.py +++ b/app/tasks/email_templates.py @@ -16,80 +16,87 @@ def create_registration_confirmation_template( email.set_content( f""" - - - + + Submiting - - - + + + + + + + + + + + + + + + + +
 
 
+
- -
- -

Код подтверждения, {username}

-
+ border-radius: 12px; -

{confirmation_code}

-
+ font-family: comfortaa; + "> -

или

+

Код подтверждения для сладкого {username}

- +

перейдите по ссылке

-
-
+ font-family: comfortaa; + ">{confirmation_code} + +

или

+ + перейдите по ссылке + +
 
 
- - + """, subtype="html", ) @@ -165,7 +172,7 @@ def create_data_change_confirmation_email(username: str, email_to: EmailStr, _: - """, + """, subtype="html", ) return email @@ -230,7 +237,7 @@ def create_data_change_email(username: str, email_to: EmailStr): - """, + """, subtype="html", ) return email