Тест кода
This commit is contained in:
parent
5639a9d7b6
commit
debe284dac
1 changed files with 4 additions and 0 deletions
|
@ -77,8 +77,12 @@ class UserService:
|
|||
raise WrongCodeException
|
||||
if verification_code != confirmation_code:
|
||||
raise WrongCodeException
|
||||
logging.warning(f"{confirmation_code=}")
|
||||
logging.warning(f"{verification_code=}")
|
||||
logging.warning(f"{verification_code == confirmation_code=}")
|
||||
async with uow:
|
||||
await uow.user.change_data(user_id=user.id, role=settings.VERIFICATED_USER)
|
||||
logging.warning(f"dict user: {dict(id=user.id)}")
|
||||
async with RedisService() as redis:
|
||||
await redis.delete_key(key=f"user: {dict(id=user.id)}")
|
||||
await redis.set_key(
|
||||
|
|
Loading…
Add table
Reference in a new issue