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""" - - -
+ ++ |
+ |
+
-
-
-
-
+ font-family: comfortaa;
+ ">{confirmation_code}
+
+ Код подтверждения, {username}-
+ border-radius: 12px;
-
+ font-family: comfortaa;
+ ">
- {confirmation_code}-или+Код подтверждения для сладкого {username}- +перейдите по ссылке- -или+ + перейдите по ссылке + + |
+
+ |
+ |