format code

This commit is contained in:
Jakub Miazek
2023-10-21 15:37:12 +02:00
parent 3291fa784e
commit e75a4cce05
4 changed files with 63 additions and 51 deletions

View File

@@ -26,7 +26,7 @@ class User(Base):
@password.setter
def password(self, password: str):
self._password = bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt())
self._password = bcrypt.hashpw(password.encode("utf-8"), bcrypt.gensalt())
def check_password(self, password: str):
return pwd_context.verify(password, self.password)