fix: remove hash value logging

This commit is contained in:
2026-06-28 14:12:24 +03:00
parent 2b9b54715f
commit 0bea5bfb5a

View File

@@ -9,9 +9,7 @@ class HashService(IHashService):
async def hash(self, value: str) -> str: async def hash(self, value: str) -> str:
hashed_value = bcrypt.hashpw(value.encode(), bcrypt.gensalt()) hashed_value = bcrypt.hashpw(value.encode(), bcrypt.gensalt())
self._logger.info(f'Hash value {hashed_value.decode()}')
return hashed_value.decode() return hashed_value.decode()
async def verify(self, hashed_value: str, plain_value: str) -> bool: async def verify(self, hashed_value: str, plain_value: str) -> bool:
self._logger.info(f'Hash value {hashed_value[:10]}')
return bcrypt.checkpw(plain_value.encode(), hashed_value.encode()) return bcrypt.checkpw(plain_value.encode(), hashed_value.encode())